SHARE
TWEET

Untitled

a guest Apr 28th, 2013 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (reduce (fn [f str] (f str)) "FOO\n"
  2.         [clojure.string/trim clojure.string/lower-case])
  3. ;; ideally, this would yield "foo"
  4. ;;
  5. ;; and not:
  6. java.lang.ClassCastException: java.lang.String cannot be cast to clojure.lang.IFn
  7.  at forager.core$eval3103$fn__3104.invoke (NO_SOURCE_FILE:1)
  8.     clojure.lang.ArrayChunk.reduce (ArrayChunk.java:58)
  9.     clojure.core.protocols/fn (protocols.clj:94)
  10.     clojure.core.protocols$fn__5854$G__5849__5863.invoke (protocols.clj:19)
  11.     clojure.core.protocols$seq_reduce.invoke (protocols.clj:31)
  12.     clojure.core.protocols/fn (protocols.clj:60)
  13.     clojure.core.protocols$fn__5828$G__5823__5841.invoke (protocols.clj:13)
  14.     clojure.core$reduce.invoke (core.clj:6030)
  15.     forager.core$eval3103.invoke (NO_SOURCE_FILE:1)
  16.     clojure.lang.Compiler.eval (Compiler.java:6511)
  17.     clojure.lang.Compiler.eval (Compiler.java:6477)
  18.     clojure.core$eval.invoke (core.clj:2797)
  19.     clojure.main$repl$read_eval_print__6405.invoke (main.clj:245)
  20.     clojure.main$repl$fn__6410.invoke (main.clj:266)
  21.     clojure.main$repl.doInvoke (main.clj:266)
  22.     clojure.lang.RestFn.invoke (RestFn.java:1096)
  23.     clojure.tools.nrepl.middleware.interruptible_eval$evaluate$fn__544.invoke (interruptible_eval.clj:56)
  24.     clojure.lang.AFn.applyToHelper (AFn.java:159)
  25.     clojure.lang.AFn.applyTo (AFn.java:151)
  26.     clojure.core$apply.invoke (core.clj:601)
  27.     clojure.core$with_bindings_STAR_.doInvoke (core.clj:1771)
  28.     clojure.lang.RestFn.invoke (RestFn.java:425)
  29.     clojure.tools.nrepl.middleware.interruptible_eval$evaluate.invoke (interruptible_eval.clj:41)
  30.     clojure.tools.nrepl.middleware.interruptible_eval$interruptible_eval$fn__585$fn__587.invoke (interruptible_eval.clj:17\
  31. 1)
  32.     clojure.core$comp$fn__4034.invoke (core.clj:2278)
  33.     clojure.tools.nrepl.middleware.interruptible_eval$run_next$fn__578.invoke (interruptible_eval.clj:138)
  34.     clojure.lang.AFn.run (AFn.java:24)
  35.     java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
  36.     java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:615)
  37.     java.lang.Thread.run (Thread.java:722)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top