RosettaCodeData/Task/Character-codes/Swift/character-codes-3.swift
2016-12-05 23:44:36 +01:00

4 lines
124 B
Swift

let i1: UInt32 = 97
println(UnicodeScalar(i1)) // prints "a"
let i2: UInt32 = 960
println(UnicodeScalar(i2)) // prints "π"