Skip to content

Commit d13562e

Browse files
authored
added rune example file: rune.n
1 parent 44eca53 commit d13562e

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

egs/rune/rune.n

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
fn main() {
2+
// THUMBS UP👍 => U+1F44D
3+
thumbs_up := rune(0x1F44D)
4+
println("Thumbs Up: ${thumbs_up}")
5+
6+
// MUSIC NOTE🎵 => U+1F3B5
7+
music_note := rune(0x1F3B5)
8+
println("Music Note: ${music_note}")
9+
10+
// HEAVY CHECK MARK✔ => U+2714
11+
heavy_check_mark := rune(0x2714)
12+
println("Heavy Check Mark: ${heavy_check_mark}")
13+
14+
// GRINNING FACE😀 => U+1F600
15+
grinning_face := rune(0x1F600)
16+
println("Grinning Face: ${grinning_face}")
17+
18+
// SNOWFLAKE❄ => U+2744
19+
snowflake := rune(0x2744)
20+
println("Snowflake: ${snowflake}")
21+
22+
// SUN WITH FACE🌞 => U+1F31E
23+
sun_with_face := rune(0x1F31E)
24+
println("Sun with Face: ${sun_with_face}")
25+
26+
// CAT FACE😺 => U+1F63A
27+
cat_face := rune(0x1F63A)
28+
println("Cat Face: ${cat_face}")
29+
30+
// COMMERCIAL AT@ => U+0040
31+
commercial_at := rune(0x0040)
32+
println("Commercial At: ${commercial_at}")
33+
34+
// ROBOT🤖 => U+1F916
35+
robot := rune(0x1F916)
36+
println("Robot: ${robot}")
37+
38+
// ROSE🌹 => U+1F339
39+
rose := rune(0x1F339)
40+
println("Rose: ${rose}")
41+
42+
// CLOUD☁ => U+2601
43+
cloud := rune(0x2601)
44+
println("Cloud: ${cloud}")
45+
46+
// BICYCLE🚲 => U+1F6B2
47+
bicycle := rune(0x1F6B2)
48+
println("Bicycle: ${bicycle}")
49+
50+
// GLOBE WITH MERIDIANS🌐 => U+1F310
51+
globe_with_meridians := rune(0x1F310)
52+
println("Globe with Meridians: ${globe_with_meridians}")
53+
54+
// SOCCER BALL⚽ => U+26BD
55+
soccer_ball := rune(0x26BD)
56+
println("Soccer Ball: ${soccer_ball}")
57+
58+
// ALIEN👽 => U+1F47D
59+
alien := rune(0x1F47D)
60+
println("Alien: ${alien}")
61+
}

0 commit comments

Comments
 (0)