RosettaCodeData/Task/Character-codes/Langur/character-codes.langur

12 lines
288 B
Text
Raw Permalink Normal View History

2024-07-13 15:19:22 -07:00
val a1 = 'a'
val a2 = 97
val a3 = "a"[1]
2025-02-27 18:35:13 -05:00
val a4 = s2cp("a", of=1)
2024-07-13 15:19:22 -07:00
val a5 = [a1, a2, a3, a4]
2023-07-01 11:58:00 -04:00
2024-07-13 15:19:22 -07:00
writeln a1 == a2
writeln a2 == a3
writeln a3 == a4
2025-02-27 18:35:13 -05:00
writeln "numbers: ", join(map([a1, a2, a3, a4, a5], by=string), by=", ")
writeln "letters: ", join(map([a1, a2, a3, a4, a5], by=cp2s), by=", ")