Skip to content

Instantly share code, notes, and snippets.

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