This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-16
Channels
- # announcements (7)
- # babashka (1)
- # beginners (25)
- # calva (7)
- # cider (15)
- # clj-kondo (13)
- # cljdoc (14)
- # clojure (151)
- # clojure-europe (4)
- # clojure-hamburg (2)
- # clojure-italy (22)
- # clojure-nl (57)
- # clojure-spec (12)
- # clojure-uk (6)
- # clojuredesign-podcast (5)
- # clojurescript (12)
- # core-async (8)
- # cursive (26)
- # datascript (9)
- # datomic (92)
- # emacs (4)
- # fulcro (7)
- # graalvm (1)
- # graphql (2)
- # instaparse (3)
- # jobs (1)
- # jvm (2)
- # kaocha (6)
- # nrepl (3)
- # off-topic (5)
- # re-frame (45)
- # reagent (5)
- # reitit (18)
- # ring (1)
- # shadow-cljs (89)
- # slack-help (9)
- # spacemacs (2)
- # sql (54)
- # tools-deps (75)
- # vim (28)
- # xtdb (17)
- # yada (31)
Hello everyone ... How does one get about trying out the reagent-cookbook
?
I did:
lein new rc input-validation
which created an input-validation
folder and when I went in there and ran lein cljsbuild once
it threw up on my faceAm I doing something wrong? (Full Noob here)
version: Leiningen 2.9.1 on Java 11.0.4 OpenJDK 64-Bit Server VM
It worked for me, although I'm using Openjdk 8 instead of 11. I'm guessing the problem lies there?
WTF!!! @UCW9TUDNK thanks a lot... it built with Openjdk 8
@UCW9TUDNK maybe it's a stupid question but can you give me a hint as to how I can try the examples out?
I do a lein cljs build once
but then I open the index.html
file (`firefox resources/public/index.html`) I get a blank page... (I tried it again for the simple-sidebar
example)
It looks like the rc template is empty by default (just an empty div) https://github.com/gadfly361/reagent-cookbook-template/blob/master/src/leiningen/new/rc/core.cljs
I'm not familiar with reagent-cookbook, but I guess they expect you to fill in the code yourself?
If you're like me and would like hot-reloading when you play around, using reagent-template might be a better solution https://github.com/reagent-project/reagent-template
Then just run lein figwheel
after lein new reagent <name>
. With the rc
template you would have to refresh the page on every change.
I think after spending the last couple of hours trying to figure out the problem with lein
(which turned out to be an openjdk
version issue) I've lost it
hello, why map function returns some #object[clojure.core$map$fn__5583 0xc10e2888 "clojure.core$map$fn__5583@c10e2888"]
object instead of regular collection?
You're probably calling map with a single argument, which makes it return a transducer (see (doc map)
). If you want it to return a collection, you have to pass it as the 2nd argument.
Hi. Is there a builtin that given two vectors applies functions from the first one on corresponding elements of the second? (... [f g h] [1 2 3]) => [(f 1) (g 2) (h 3)]
in paul graham's bel
lisp he made a function called upon
that seems quite nice. but if you know arities you can also just do (map #(%1 %2) fns vals)
I was hoping there was a generic builtin
No problem though!
I think the more usual version is to use #(%1 %2)
or some equivalent
(map #(%1 %2) [f g h] [1 2 3])