Skip to content

Commit 296f296

Browse files
committed
chore: modifying the examples
1 parent f3e4888 commit 296f296

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

example/ok.ark

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
(let a 1)
22
(print a)
3-

example/bad.ark renamed to example/switch.ark

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
# =end
1515
# @author https://github.com/SuperFola
1616
($ switch (value case then ...cases) {
17-
($if (= "_" ($repr case))
18-
then
19-
(if (= value case)
20-
then
21-
($if (>= (len cases) 2)
22-
(switch value ...cases))))})
23-
17+
($if (= "_" ($repr case))
18+
then
19+
(if (= value case)
20+
then
21+
($if (>= (len cases) 2) (switch value ...cases)))) })

0 commit comments

Comments
 (0)