This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-02
Channels
- # admin-announcements (1)
- # alda (3)
- # beginners (28)
- # boot (155)
- # braid-chat (8)
- # cider (22)
- # cljs-dev (46)
- # cljsrn (24)
- # clojure (94)
- # clojure-belgium (23)
- # clojure-czech (2)
- # clojure-germany (7)
- # clojure-greece (12)
- # clojure-india (1)
- # clojure-japan (1)
- # clojure-russia (118)
- # clojure-spain (18)
- # clojure-spec (40)
- # clojure-sweden (19)
- # clojure-taiwan (4)
- # clojure-uk (5)
- # clojurescript (185)
- # clojutre (10)
- # community-development (5)
- # core-logic (11)
- # css (5)
- # cursive (7)
- # datomic (5)
- # dirac (6)
- # emacs (2)
- # euroclojure (1)
- # events (5)
- # hoplon (355)
- # instaparse (3)
- # jobs-rus (5)
- # lein-figwheel (2)
- # leiningen (5)
- # mount (11)
- # off-topic (8)
- # om (20)
- # onyx (10)
- # other-languages (87)
- # perun (9)
- # proton (1)
- # re-frame (21)
- # reagent (16)
- # specter (28)
- # tmp-json-parsing (5)
- # untangled (19)
- # yada (43)
I would prefer the constructor form over the Java interop - see @stuartsierra's blog on this https://stuartsierra.com/2015/05/17/clojure-record-constructors
and how would one get to the created field? '(defrecord Foo [a b]) => user.Foo (map->Foo {:b 4 :a 3}) => #user.Foo{:a 3, 😛 4} (:a Foo) => nil`
@senya22: You can use triple backticks to quote multiple lines of code.
ah, thanks @seancorfield !
Quick question! I have the following code:
(def list-of-things (atom '()))
(defn sum-price-for-products
[things]
(reduce str things))
(defn -main
[& args]
(swap! list-of-things conj args)
(println (sum-price-for-products @list-of-things)))
and I run it with lein run "apple" "apple”
which I get back (apple apple)
instead of appleapple
which I expectsomeone knows why?
yeah, or using concat
I discovered now
starting with http://clojure.org/community/resources
pretty sure it's against the Google's TOS to automate searching but you'll probably get away with a bunch of calls to ajax.core/GET
before you get rate-limited