According to the docs in Xcode 7b6, join(_:) is a method on String. But if I 
try to call it:

    var str = "Hello, playground"
    str.join(["foo","bar"])

error: 'join' is unavailable: call the 'joinWithSeparator()' method on the 
sequence of elements
str.join(["foo","bar"])
    ^~~~
Swift.String:3:8: note: 'join' has been explicitly marked unavailable here
  func join<S : SequenceType where S.Generator.Element == String>(elements: S) 
-> String

Of course, I can't command-click on join() to get to its declaration, and 
option-clicking on it doesn't link to its documentation.

Searching the documentation for joinWithSeparator turns up nothing.

Are my docs just broken, or are Xcode's docs not up-to-date with the language? 
Does code completion and jumping to declarations and finding docs via source 
code work for anyone else?

-- 
Rick Mann
[email protected]



_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to