RosettaCodeData/Task/Substring-Top-and-tail/Swift/substring-top-and-tail-3.swift
2016-12-05 23:44:36 +01:00

3 lines
103 B
Swift

var txt = "0123456789"
txt.removeAtIndex(txt.startIndex)
txt.removeAtIndex(txt.endIndex.predecessor())