getting deeper with slices, empty slice vs nil slice | len() and cap() etc..

This commit is contained in:
2026-09-09 00:15:16 -04:00
parent 662e044c2c
commit dd7e213077
6 changed files with 40 additions and 1 deletions
+2 -1
View File
@@ -14,7 +14,8 @@ func fib() func() int {
func main() {
f := fib()
for x := f(); x < 100; x = f() {
fmt.Println("This Fibonacci sequense < 10000")
for x := f(); x < 10000; x = f() {
fmt.Println(x)
}
}