Created
June 17, 2022 19:18
-
-
Save iAmWillShepherd/d011b0a9d1fce3c8a1fe70d25b5db394 to your computer and use it in GitHub Desktop.
Revisions
-
iAmWillShepherd created this gist
Jun 17, 2022 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ ```swift func greetingMaker(greeting: String) -> (String) -> String { return { "\(greeting), \($0)" } } let hello = greetingMaker(greeting: "Hello") hello("world") // "Hello, World" ```