September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -0,0 +1 @@
|
|||
if cond then f else g end
|
||||
|
|
@ -0,0 +1 @@
|
|||
if cond then f elif cond1 then f1 .... else g end
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
if empty then 2 else 3 end # produces no value
|
||||
if 1 then 2 else 3 end # produces 2
|
||||
if [false, false] then 2 else 3 end # produces 2
|
||||
if (true, true) then 2 else 3 end # produces a stream: 2, 2
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
exp
|
||||
| if . == true then "true"
|
||||
elif . == false then "false"
|
||||
elif . == null then "maybe"
|
||||
elif type == "string" then .
|
||||
else error("unexpected value: \(.)")
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue