Re: [swift-users] xcode8 segmentation fault help

2016-09-27 Thread Jordan Rose via swift-users
> On Sep 27, 2016, at 03:37, Vladimir.S via swift-users > wrote: > > On 27.09.2016 12:51, Luis Ferro via swift-users wrote: >> let string = "a simple test" >> if (string.characters.count > 0) { >>let words = string.components(separatedBy: " ") >>let headline = words.map { (var word) ->

Re: [swift-users] xcode8 segmentation fault help

2016-09-27 Thread Vladimir.S via swift-users
On 27.09.2016 12:51, Luis Ferro via swift-users wrote: let string = "a simple test" if (string.characters.count > 0) { let words = string.components(separatedBy: " ") let headline = words.map { (var word) -> String in let firstCharacter = word.remove(at: word.startIndex) r

[swift-users] xcode8 segmentation fault help

2016-09-27 Thread Luis Ferro via swift-users
Hi everyone, I'm trying to follow some very simple code examples, and got this weird situation with a playground: //: Playground - noun: a place where people can play import UIKit let string = "a simple test" if (string.characters.count > 0) { let words = string.components(separatedBy: " ")