Skip to content

Instantly share code, notes, and snippets.

@monkrus
Last active April 28, 2022 22:00
Show Gist options
  • Save monkrus/e70b71408aeb21f87384027a488de021 to your computer and use it in GitHub Desktop.
Save monkrus/e70b71408aeb21f87384027a488de021 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func last() func(a, b int) int {
first := func(c, d int) int {
return c + d
}
return first
}
func main() {
s := last()
fmt.Println(s(25, 50))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment