diff options
Diffstat (limited to 'exercises/slices')
-rw-r--r-- | exercises/slices/slices2/main.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/exercises/slices/slices2/main.go b/exercises/slices/slices2/main.go new file mode 100644 index 0000000..54595ff --- /dev/null +++ b/exercises/slices/slices2/main.go @@ -0,0 +1,13 @@ +// slices2 +// Make me compile! + +// I AM NOT DONE +package main + +import "fmt" + +func main() { + names := [4]string{"John", "Maria", "Carl", "Peter"} + lastTwoNames := names[] // after figuring out the answer, try with other low/high bounds + fmt.Println(lastTwoNames) +} |