raz / conform / run / JoinStr.raz

21 lines · 391 B · raw · history · last change 264716cb

1module JoinStr;
2import Out;
3
4const
5 Text = "the cat";
6 Line = Text + "\n";
7 Both = "<" + Text + ">" + "";
8 Word = ("sat" + " ") + "on";
9
10proc main*;
11var w: []const U8;
12begin
13 Out.str(Line);
14 Out.str(Both); Out.ln;
15 Out.int(LEN(Both)); Out.ln;
16 w := Text[4..7];
17 Out.str(w); Out.str(" "); Out.str(Word + "\n");
18 Out.int(I64(Line[7])); Out.ln;
19end;
20
21end JoinStr.