| 1 | module JoinStr; |
| 2 | import Out; |
| 3 | |
| 4 | const |
| 5 | Text = "the cat"; |
| 6 | Line = Text + "\n"; |
| 7 | Both = "<" + Text + ">" + ""; |
| 8 | Word = ("sat" + " ") + "on"; |
| 9 | |
| 10 | proc main*; |
| 11 | var w: []const U8; |
| 12 | begin |
| 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; |
| 19 | end; |
| 20 | |
| 21 | end JoinStr. |