Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Variadic-function/Racket/variadic-function.rkt
Normal file
15
Task/Variadic-function/Racket/variadic-function.rkt
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
-> (define (vfun . xs) (for-each displayln xs))
|
||||
-> (vfun)
|
||||
-> (vfun 1)
|
||||
1
|
||||
-> (vfun 1 2 3 4)
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
-> (apply vfun (range 10 15))
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
Loading…
Add table
Add a link
Reference in a new issue