This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-19
Channels
- # beginners (7)
- # boot (48)
- # clojure (50)
- # clojure-portugal (1)
- # clojure-russia (10)
- # clojure-spec (29)
- # clojure-uk (9)
- # clojurescript (116)
- # core-logic (1)
- # cursive (12)
- # datascript (2)
- # datomic (7)
- # defnpodcast (8)
- # dirac (80)
- # emacs (486)
- # hoplon (5)
- # instaparse (3)
- # keechma (1)
- # luminus (3)
- # lumo (35)
- # off-topic (65)
- # om (6)
- # onyx (6)
- # perun (42)
- # re-frame (5)
- # reagent (5)
- # rum (2)
- # untangled (170)
- # vim (13)
I have a question: how could I inspect the response object from a compojure route in the repl? Is there a way to save that off as a variable in the repl?
for example:
(defroutes my-routes
(GET "/" req ;;<-- how can I access this variable from the repl
,,,))
I want to convert string of digits into collection of integers there better way to do this?
(map (comp read-string str) "123")
=> (1 2 3)
@kgofhedgehogs You could do (map #(- (int %) 48) "123")