Hello,
What is the best way to find help with exercises of the brave book and
feedback on the solutions ?
This group, the irc channel or the reddit page ?
Roelof
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to
jure
Op vrijdag 23 oktober 2015 14:50:30 UTC+2 schreef Colin Yates:
> clojure.string/join not clojure.join/string
>
> On 23 Oct 2015, at 13:49, r/ Wobben >
> wrote:
>
> Thanks,
>
> I tried it like this :
>
> (defn convert-back
> "converts the
k but you can’t
> guarantee the order.
>
> (map (fn [{:keys [name city]}] (clojure.join/string “,” [name city])))
> my-map) gives you control of the order in which the fields are processed.
>
> You could also look at juxt as well?
>
> On 23 Oct 2015, at 12:49, r/ Wobben >
>
Hello,
As a challenge I need to convert a map structure to a csv structure.
So ( { :name "roelof", :city secret }) need to be converted to roelof,
secret.
I think I can use something like (map clojure.string/join ..) for it but
it seems I have to make a function out of the :name roelof par
ll) (reverse coll)))
>
>
> user=> (palindrome? "tattarrattat")
> true
> user=> (palindrome? [1 5 10 10 5 1])
> true
> user=> (palindrome? "marc")
> false
> user=> (palindrome? [1 2 3])
> false
>
>
> On 8 October 2015 at 12:48,
On 8 Oct 2015, at 09:15, r/ Wobben >
> wrote:
>
> > I have now this :
> >
> > (ns fourclojure.core
> > (:gen-class))
> >
> >
> > (defn checker [x]
> > ( = x (if (string? x)
> > (clojure.string/reverse x)
> > (
I have now this :
(ns fourclojure.core
(:gen-class))
(defn checker [x]
( = x (if (string? x)
(clojure.string/reverse x)
(into (empty x) (reverse x)
(checker '(1 2 3 4 5)) true
( = '( 1 2 3 4 5) '( 5 4 3 2 1) ) false
So something is wrong about my code
it works fine wi
Thanks for the explanation.
For a beginner enough to learn
Roelof
Op woensdag 7 oktober 2015 21:02:00 UTC+2 schreef Moe Aboulkheir:
> Roelof,
>
> As you noted, reverse doesn't preserve the variety of collection which was
> passed in - it returns a sequence. (into A B) appends the items in B
hello,
Suppose I have this test
(facts "do-a-thing" {:exercise 1 :points 1} (do-a-thing 3) => 46656.0 (
do-a-thing 1) => 4.0 (do-a-thing 0) => 1.0)
Is there a way I can only run this test
I tried lein midje :filter exercise 1
but that one fails.
Roelof
--
You received this message because
]]
:profiles {:dev {:plugins [[lein-midje "3.1.1"]]}})
Roelof
Op woensdag 2 september 2015 08:02:14 UTC+2 schreef r/ Wobben:
>
> Thanks,
>
> For anyone who is interested.
> Here are the exercises and theory:
> http://iloveponies.github.io/120-hour-epic-sax-maratho
ves:
>
> At test.clj:10:
>
> Consider using:
>
> (neg? x)
>
> instead of:
>
> (< x 0)
>
>
> At test.clj:15:
>
> Consider using:
>
> (zero? (mod n divisor))
>
> instead of:
>
> (= (mod n divisor) 0)
>
>
> Jony
>
>
Hello,
When I want to start labrepl it stops with this error message.
Installed clojure 1.7.0-alpha1.
java : openjdk7-jre-headless.
Roelof
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.
re.com/
>
> If you can clone this github repo and you are not afraid of the command
> line you can try: https://github.com/relevance/labrepl
>
>
> Denis
>
> El lunes, 31 de agosto de 2015, 8:49:46 (UTC-7), r/ Wobben escribió:
>>
>> Hello,
>>
>
Hello,
I did solve the boolean chapter of the ilovehorses git repo.
My solutions can be found here:
https://github.com/rwobben/i-am-a-horse-in-the-land-of-booleans/blob/master/src/i_am_a_horse_in_the_land_of_booleans.clj
Any experts who can give me feedback about the solutions so I can learn
f
Hello,
I found this MOOC to learn me clojure :
http://iloveponies.github.io/120-hour-epic-sax-marathon/basic-tools.html
Is this a good one or is there a better free alternative.
Roelof
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to t
15 matches
Mail list logo