Knaph

Composite Types32 of 62

Filter a Slice

The starter code reads n integers into a slice using append. Build a second slice containing only the values greater than 10, and print it with fmt.Println (it'll print like [12 20]).

Sign in to try this exercise.