blob: 47c6979d4c3ca971046ab7e2ccaf424b3bff5a18 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
[comments are in square brackets]
[begin list with /]
[end list with \]
[items in list separated by &]
[lines terminated by ;]
[arguments given as a list after the .]
[USE brings a module into scope]
USE./"base"&"io"\;
[all variables are mutable at all times]
message="Hello, World!";
[new functions defined with = followed by a list of procedures, which are called procedurally when called]
say.msg=/
[functions/variables in a module are accessed through a ~ (analogous to dot notation)]
msg=io~escape.msg&
io~o.msg
\;
for_each./ build_list./5\ &
say.message
\
|