Deviopath › Swift

Initials

Easy · Strings

s.split(separator: " ") (or split(whereSeparator: \.isWhitespace)) yields words. Take the first character of each, uppercased, and concatenate.

Write initials(_:).

Next: Clamp a Number