Skip to content

Commit

Permalink
add more compat cast stuff. update corelib.org
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Feb 22, 2013
1 parent 2000f54 commit 82973af
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 17 deletions.
34 changes: 17 additions & 17 deletions devnotes/corelib.org
Original file line number Diff line number Diff line change
Expand Up @@ -109,30 +109,30 @@ does what?
* DONE bit-xor
* DONE boolean
* boolean-array
* booleans
* DONE booleans
* bound-fn
* bound-fn*
* bound?
* DONE butlast
* DONE byte
* byte-array
* bytes
* DONE bytes
* DONE case
* cast
* DONE char
* char-array
* char-escape-string
* char-name-string
* char?
* chars
* chunk
* chunk-append
* chunk-buffer
* chunk-cons
* chunk-first
* chunk-next
* chunk-rest
* chunked-seq?
* DONE chars
* DONE chunk
* DONE chunk-append
* DONE chunk-buffer
* DONE chunk-cons
* DONE chunk-first
* DONE chunk-next
* DONE chunk-rest
* DONE chunked-seq?
* class
* class?
* clear-agent-errors
Expand Down Expand Up @@ -199,7 +199,7 @@ For macros only, uses clojure.core version
* DONE doto
* DONE double
* DONE double-array
* TODO doubles
* DONE doubles
* DONE drop
* DONE drop-last
* DONE drop-while
Expand Down Expand Up @@ -235,7 +235,7 @@ macro currently expands into extend call
* DONE float
* float-array
* float?
* floats
* DONE floats
* flush
* DONE fn
* DONE fn?
Expand Down Expand Up @@ -285,7 +285,7 @@ does what?
* DONE interpose
* DONE into
* DONE into-array
* ints
* DONE ints
* io!
* DONE isa?
does what?
Expand Down Expand Up @@ -316,7 +316,7 @@ does what?
* locking
* DONE long
* DONE long-array
* TODO longs
* DONE longs
* DONE loop
* macroexpand
* macroexpand-1
Expand Down Expand Up @@ -481,8 +481,8 @@ as macro
* DONE set?
* DONE short
* short-array
* shorts
* TODO shuffle
* DONE shorts
* DONE shuffle
* shutdown-agents
* slurp
* DONE some
Expand Down
9 changes: 9 additions & 0 deletions src/cljs/cljs/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1470,6 +1470,15 @@ reduces them without incurring seq initialization"
[x]
(fix x))

(defn booleans [x] x)
(defn bytes [x] x)
(defn chars [x] x)
(defn shorts [x] x)
(defn ints [x] x)
(defn floats [x] x)
(defn doubles [x] x)
(defn longs [x] x)

(defn js-mod
"Modulus of num and div with original javascript behavior. i.e. bug for negative numbers"
[n d]
Expand Down

0 comments on commit 82973af

Please sign in to comment.