Back to the clean version
This commit is contained in:
parent
4c196c93d9
commit
37ffe3c870
@ -16,10 +16,8 @@ func fibonacci() func() int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
f1 := fibonacci()
|
f := fibonacci()
|
||||||
f2 := fibonacci()
|
|
||||||
for i := 0; i < 10; i++ {
|
for i := 0; i < 10; i++ {
|
||||||
fmt.Println("f1 ->", f1())
|
fmt.Println(f())
|
||||||
fmt.Println("f2 ->", f2())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user