Hello.
I'm trying catch exception from cheshire.core/decode (or parse-string). But
it didn't work
user= (require ['cheshire.core :as 'json])
user= (try (json/decode [{\id\:ty\:1}]) (catch Throwable _ (println
I catched exception)))
JsonParseException Unrecognized token 'ty': was expecting
at
be
coming from the realization step.
On Wed, Sep 11, 2013 at 4:56 AM, Алексей Александров
alexeyaleksand...@gmail.com wrote:
Hello.
I'm trying catch exception from cheshire.core/decode (or parse-string).
But it didn't work
user= (require ['cheshire.core :as 'json])
user= (try (json/decode
Because
(partial map first) return function
= (- [[1 2] [3 4] [5]] (partial map first))
#core$partial$fn__3796 clojure.core$partial$fn__3796@1cd14f7
you should call function to get result
= (- [[1 2] [3 4] [5]] ((partial map first)) flatten)
(1 3 5)
2013/6/8 Matt Smith matt.smith...@gmail.com