RosettaCodeData/Task/Repeat-a-string/Swift/repeat-a-string-2.swift

2 lines
48 B
Swift

String(count:5, repeatedValue:"*" as Character)