0

Can I have a JS lambdas in Clojurescript? I have

.then((entry) => console.log(entry))

How will it work in CLJS?

1 Answers1

3

A lambda is made with fn:

(.then promise (fn [entry] (.log js/console entry)))
Michiel Borkent
  • 34,228
  • 15
  • 86
  • 149