let bits = split(value!, { $0 == " "})
Missing argument for parameter 'isSeparator' in call
let bits = split(value!, { $0 == " "}, maxSplit: Int.max, allowEmptySlices: false)
Cannot invoke 'split' with an argument list of type '(String, (_) -> _, maxSplit: Int, allowEmptySlices: Bool)'
0
iQi - 面白いアプリを開発中
let bits = split(value!, maxSplit: Int.max, allowEmptySlices: false, isSeparator: { $0 == " "})
or, using the default values:
let bits = split(value!, isSeparator: { $0 == " "})
or
let bits = split(value!, maxSplit: Int.max, allowEmptySlices: false) { $0 == " " }
or
let bits = split(value!) { $0 == " " }