Sync
This commit is contained in:
parent
6f050a029e
commit
776bba907c
3887 changed files with 59894 additions and 7280 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