Hi,
I am aware of philosophical differences of Scala and Clojure
but functional programming should be a pretty common ground :)
Thus I need help, I am trying to mimic Scala's for comprehension in Clojure.
Hopefully someone will be able to aid me with the following (perhaps more
familiar with Sca
Hi Rastko,
One way of doing that would be to use the mlet macro from the Cats library:
http://funcool.github.io/cats/latest/#mlet
Also, there are several if-lets or when-lets out there that allow multiple
bindings, I used one from https://github.com/ptaoussanis/encore
I use Scala's for most of
It's a bit hard (at least for me) to see what you're actually trying to do
here that would precent a direct translation of your snippet to Clojure's
for. Could you perhaps post a complete, self-contained code example in
Scala?
On Thursday, 26 November 2015, Torsten Uhlmann
wrote:
> Hi Rastko,
>
I have just installed a new box and cannot make Cider working with
Spacemacs nor Prelude.
When I open a .clj file I notice this in *Messages*:
*Eager macro-expansion failure: (error "Unknown upattern `(quote
request)'")*
Then I try to connect to nREPL server C-c M-c and the REPL is not working
Some bad code slipped into master for a few minutes but was fixed promptly.
See https://github.com/clojure-emacs/cider/issues/1434 for more details.
Just upgrade CIDER and you should be fine.
On Thursday, November 26, 2015 at 1:16:23 PM UTC+1, Karel Miarka wrote:
>
> I have just installed a new
It is the same thing in Clojure. It is called a 'list comprehension' even
although for form for it starts with `for` I wouldn't worry too much about
the flatmap / mapcat stuff, as I think the translation should be quite
direct at the higher 'comprehension' level.
On Nov 26, 2015 10:12 PM, "Rastko
Thanks a lot.
But whatever I do, I cannot get rid of the warnings:
; CIDER 0.10.0snapshot (package: 20151125.1430) (Java 1.8.0_66, Clojure
1.7.0, nREPL 0.2.12)
WARNING: The following required nREPL ops are not supported:
apropos classpath complete eldoc format-code format-edn info inspect-pop
Hi, I am not sure if it will serve point the best but that is what I have
received as a koan style problem with Scala solution,
now I am trying to comprehend it fully and convert to Clojure. Like I said
I am by no means Scala expert.
Let's say we have some Val container which is capable to hold
Most Scala `for` examples translate over to Clojure's `for`. The biggest
difference is that Scala produces a collection matching the type of the
first generator, whereas Clojure produces a lazy sequence, which you can
"pour" into the collection of your choice with `into`.
It looks like your speci
Looks like your plugins are not getting pulled by leiningen.
Delete your .m2/ snapshots and then start lein repl in a terminal. Do you
see the plugins being pulled?
In this repl, are you able to require cider namespaces? Try: (require
'cider.nrepl.middleware.debug)
On 26 Nov 2015 1:47 pm, "Karel
10 matches
Mail list logo