mirror of
https://github.com/kanaka/mal.git
synced 2024-09-11 21:57:38 +03:00
Jq: Fix our share of #513
This commit is contained in:
parent
805ae7b280
commit
ada8c52f53
@ -108,7 +108,7 @@ def EVAL(env):
|
|||||||
end;
|
end;
|
||||||
(select(.kind == "list") |
|
(select(.kind == "list") |
|
||||||
if .value | length == 0 then
|
if .value | length == 0 then
|
||||||
.
|
. | addEnv(env)
|
||||||
else
|
else
|
||||||
(
|
(
|
||||||
(
|
(
|
||||||
@ -215,4 +215,4 @@ def repl(env):
|
|||||||
} | ., xrepl;
|
} | ., xrepl;
|
||||||
{stop: false, env: env} | xrepl | if .value then (.value | _display) else empty end;
|
{stop: false, env: env} | xrepl | if .value then (.value | _display) else empty end;
|
||||||
|
|
||||||
repl(replEnv)
|
repl(replEnv)
|
||||||
|
@ -419,7 +419,7 @@ def EVAL(env):
|
|||||||
end;
|
end;
|
||||||
(select(.kind == "list") |
|
(select(.kind == "list") |
|
||||||
if .value | length == 0 then
|
if .value | length == 0 then
|
||||||
.
|
. | addEnv(env)
|
||||||
else
|
else
|
||||||
(
|
(
|
||||||
(
|
(
|
||||||
|
Loading…
Reference in New Issue
Block a user