Skip to content

Commit

Permalink
chore: modifying the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperFola committed Sep 22, 2024
1 parent f3e4888 commit 296f296
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion example/ok.ark
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
(let a 1)
(print a)

12 changes: 5 additions & 7 deletions example/bad.ark → example/switch.ark
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@
# =end
# @author https://github.com/SuperFola
($ switch (value case then ...cases) {
($if (= "_" ($repr case))
then
(if (= value case)
then
($if (>= (len cases) 2)
(switch value ...cases))))})

($if (= "_" ($repr case))
then
(if (= value case)
then
($if (>= (len cases) 2) (switch value ...cases)))) })

0 comments on commit 296f296

Please sign in to comment.