> 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) ->
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
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: " ")