|
|
@ -29,9 +29,10 @@ import ( |
|
|
|
func main() { |
|
|
|
func main() { |
|
|
|
summary := "Burger Water Carrot Coffee Water Water Chips Carrot Carrot Burger Carrot Water" |
|
|
|
summary := "Burger Water Carrot Coffee Water Water Chips Carrot Carrot Burger Carrot Water" |
|
|
|
for index, element := range piscine.ShoppingSummaryCounter(summary) { |
|
|
|
for index, element := range piscine.ShoppingSummaryCounter(summary) { |
|
|
|
fmt.Println(index,"=>",element) |
|
|
|
fmt.Println(index, "=>", element) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
And its output: |
|
|
|
And its output: |
|
|
|