RosettaCodeData/Task/Substring-Top-and-tail/Swift/substring-top-and-tail-3.swift

4 lines
103 B
Swift
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
var txt = "0123456789"
txt.removeAtIndex(txt.startIndex)
txt.removeAtIndex(txt.endIndex.predecessor())