Arrays and collections / Arrays and slices
Slice initialization
Adding and removing elements
Slice length
Iterating over a slice
Iterating over a slice with index
Iterating over an array (reverse)
Checking equality of slices
Finding an array element
Sorting elements
Getting unique values
Filtering elements
Slice copying
Merging slices
Converting a slice
Sum of elements
Slice with a default value
Getting part of a slice
Getting Min and Max values
every() and some() functions
Dynamic slices
Comparing arrays
Sum of elements
This example is in the full version, available in the app stores:
Golang Recipes
App Store
Code Recipes
App Store
Already bought it? Sign in to your account