Fix subtle parsing errors in prelude.
This commit is contained in:
parent
c88a06d447
commit
f5f1d4a440
|
@ -107,7 +107,7 @@ fn empty? {
|
|||
"Returns true if something is empty. Otherwise returns false (including for things that can't logically be empty, like numbers)."
|
||||
([]) -> true
|
||||
(#{}) -> true
|
||||
(${}) -> true
|
||||
(s as :set) -> eq (s, ${})
|
||||
(()) -> true
|
||||
("") -> true
|
||||
(_) -> false
|
||||
|
@ -188,7 +188,7 @@ fn flush! {
|
|||
|
||||
fn add_msg! {
|
||||
"Adds a message to the console."
|
||||
(msg as :string) -> update! (console, append, (_, msg))
|
||||
(msg as :string) -> update! (console, append (_, msg))
|
||||
(msgs as :list) -> {
|
||||
let msg = do msgs > map (string, _) > join
|
||||
update! (console, append (_, msg))
|
||||
|
|
Loading…
Reference in New Issue
Block a user