Updated notes to reflect new rule shorthand syntax

This commit is contained in:
2022-07-06 20:18:39 +02:00
parent ec7ad81fac
commit 5d8d515c28
2 changed files with 22 additions and 22 deletions

View File

@@ -4,13 +4,13 @@
import std::io::(println, out) -- imports
-- single word substitution (alias)
greet = \name. printf out "Hello {}!\n" [name]
greet == \name. printf out "Hello {}!\n" [name]
-- multi-word exported substitution
-- multi-word exported substitution with nonzero priority
export (...$pre ;) $a ...$post) =200=> (...$pre (greet $a) ...$post)
-- single-word exported substitution
export main = (
export main == (
print "What is your name? >>
readln >>= \name.
greet name