aboutsummaryrefslogtreecommitdiff
path: root/examples/how_do_i.nom
diff options
context:
space:
mode:
Diffstat (limited to 'examples/how_do_i.nom')
-rw-r--r--examples/how_do_i.nom8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/how_do_i.nom b/examples/how_do_i.nom
index e26103b..bae1379 100644
--- a/examples/how_do_i.nom
+++ b/examples/how_do_i.nom
@@ -219,11 +219,11 @@ I think "chihuahuas" are worse than "corgis"
# The language only reserves []{}().,:;%#\ as special characters, so actions
can have really funky names!
-(>> %foo_bar $@&' --> % @&_~-^-~_~-^ %1 !) means:
+(>> %foo_bar $@&' -->< % @&_~-^-~_~-^ %1 !) means:
say %foo_bar
say %
say %1
->> "wow" $@&' --> "so flexible!" @&_~-^-~_~-^ "even numbers can be variables!" !
+>> "wow" $@&' -->< "so flexible!" @&_~-^-~_~-^ "even numbers can be variables!" !
# There's also full unicode support
%こんにちは = "こんにちは"
@@ -305,8 +305,8 @@ debug only:
%best_key = %key
return %best
-# Function literals look like: [%x] -> (%x * %x)
-say (best of [2, -3, 4, -8] according to ([%x] -> (%x * %x)))
+# Function literals look like: %x -> (%x * %x)
+say (best of [2, -3, 4, -8] according to (%x -> (%x * %x)))
# Or, you can use ((foo %)'s meaning) to access the function that gets called by (foo %)
(%x squared) means (%x * %x)