Last active
April 28, 2022 23:21
-
-
Save monkrus/3d20e30ffef9e9270cf5037edea096ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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