Last active
April 28, 2022 22:00
-
-
Save monkrus/e70b71408aeb21f87384027a488de021 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { | |
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