Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
(if [test] [consequent] [[alternate]])
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
(define my-file (file-open-read "my-file.txt"))
|
||||
(if my-file (write (read-all my-file)) (! "Could not open file"))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(case [value] (match-val expression)...)
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
(case my-enum
|
||||
(string (do-string my-enum))
|
||||
(bool (do-bool my-enum))
|
||||
(proc (my-enum))
|
||||
(number (do-number my-enum))
|
||||
(else (! "No match found in case")))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(cond ([test] [expression])...)
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
(define my-num 123)
|
||||
(cond
|
||||
((positive? my-num) 'positive)
|
||||
((negative? my-num) 'negative)
|
||||
(else 'zero))
|
||||
Loading…
Add table
Add a link
Reference in a new issue