mirror of
https://github.com/carp-lang/Carp.git
synced 2024-10-11 04:27:55 +03:00
println*
This commit is contained in:
parent
d1f2966c81
commit
211f51d5df
@ -256,7 +256,7 @@
|
||||
(register-builtin "printret" '((:fn () :int)) :void)
|
||||
|
||||
;; A better println!
|
||||
(defn printlng [x]
|
||||
(defn println* [x]
|
||||
(println (ref (str x))))
|
||||
|
||||
(register-builtin "platform" '() :int)
|
||||
|
@ -147,6 +147,8 @@
|
||||
(defn mapping-strings []
|
||||
(map exclaim [(string-copy "hej") (string-copy "san") (string-copy "svej") (string-copy "san")]))
|
||||
|
||||
|
||||
|
||||
(defn even-i? [x]
|
||||
(if (even? x)
|
||||
1
|
||||
|
Loading…
Reference in New Issue
Block a user