Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; CompilerException java.lang.IllegalArgumentException: recur arg for primitive local: last_byte is not
- ; matching primitive, had: Object, needed: byte, compiling:...
- (defn test-lr []
- (loop [last-byte (byte 0)
- bytez (map byte '(1 2 3 4))
- answer '()]
- (if (empty? bytez)
- answer
- (recur (first bytez)
- (rest bytez)
- (cons (bit-or (first bytez last-byte) answer))))))
Advertisement
Add Comment
Please, Sign In to add comment