diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/how_do_i.nom | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/how_do_i.nom b/examples/how_do_i.nom index d40c7f4..61a2b18 100644 --- a/examples/how_do_i.nom +++ b/examples/how_do_i.nom @@ -316,7 +316,7 @@ say (best of [2, -3, 4, -8] according to ($x -> ($x * $x))) # Or, you can use $(foo $) to access the function that gets called by (foo $) ($x squared) means ($x * $x) -say (best of [2, -3, 4, -8] according to $($ squared) +say (best of [2, -3, 4, -8] according to $($ squared)) # But nomsu was designed with flexible alternatives that are often better than passing functions. For example, instead of calling a key function on every item, you could instead define a macro |
