mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
9 lines
178 B
Swift
9 lines
178 B
Swift
func makeIncrementer() -> (Int -> Int) {
|
|
func addOne(number: Int) -> Int {
|
|
return 1 + number
|
|
}
|
|
return addOne
|
|
}
|
|
var increment = makeIncrementer()
|
|
increment(7)
|