swift2 - Cannot invoke `join` with an argument list of type (String, [String]) in Swift 2.0 -


var specializationtitles = ["a", "b", "c", "d"] let outputstring = join(" / ", specializationtitles) 

got error:

cannot invoke join argument list of type (string, [string])

how solve this?

let separator = " / " let outputstring = separator.join(specializationtitles) 

with xcode7beta6:

specializationtitles.joinwithstring(" / ") 

with xcode7 release version:

specializationtitles.joinwithseparator(" / ") 

Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -