DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SWIFT
Swift Closures as Function Parameter
// define a function func grabLunch(search: () -> ()) { … // closure call search() }
PREVIOUS
NEXT
Tagged:
#Swift
#Closures
#Function
#Parameter
ADD COMMENT
Topic
COMMENT
Name
4+4 =
Submit