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