mirror of
https://github.com/carp-lang/Carp.git
synced 2024-10-11 04:27:55 +03:00
time for bed
This commit is contained in:
parent
0464ea300a
commit
fed784a166
@ -127,12 +127,14 @@
|
||||
(defn x2 [x]
|
||||
(* x 2))
|
||||
|
||||
(defn x2f [x]
|
||||
(* x 2.0))
|
||||
|
||||
(defn mapping []
|
||||
(map x2 [1 2 3 4 5]))
|
||||
|
||||
(bake mapping)
|
||||
|
||||
(defn x2f [x]
|
||||
(* x 2.0))
|
||||
|
||||
(defn mapping-floats []
|
||||
(map x2f [10.0 20.0 30.0 40.0 50.0]))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user