This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-20
Channels
- # announcements (1)
- # beginners (17)
- # calva (16)
- # cljfx (5)
- # clojure (94)
- # clojure-europe (1)
- # clojure-italy (2)
- # clojure-spec (4)
- # clojure-uk (1)
- # core-async (12)
- # datahike (3)
- # datomic (6)
- # depstar (4)
- # fulcro (30)
- # introduce-yourself (2)
- # malli (1)
- # off-topic (10)
- # re-frame (71)
- # shadow-cljs (15)
- # tools-deps (3)
- # xtdb (12)
is there any way to generate dynamic args for for
(for [a1 [1 2 3]
a2 [1 2 3]]
;;do sth
)
to
(for [a1 [1 2 3]
a2 [1 2 3]
...
an [1 2 3]
]
;;do sth
)
You could write a macro that generates a for
expression with a different number of bindings determined at compile time, but instead you might want to consider a function that generates the cross product of its input sequences.
For example, the cartesian-product
function in the math.combinatorics
library mentioned in the library's README here: https://github.com/clojure/math.combinatorics
@U0CMVHBL2 thanks for your help
try "resources" from https://www.reddit.com/r/Clojure/
There are lots of free resources (some commercial ones too) https://clojure.org/community/resources If you like learning fromvideo, take a look at https://practical.li/ (there are free books too)
Creating all those videos helped me get my current job, I cannot guarantee if it would get anyone else a job :)
If a person can do the first 60 or so challenges on http://4clojure.com and come up with some nice answers for the Clojure track on http://Exercism.io, that would certainly help give a very good grounding in the core Clojure language. Then it just depends on what other esoteric requirements a company as part of their hiring process
Living Clojure is a great book -- your local library might have some clojure books or you could request your local library to get some ^.^