Ad
  • Custom User Avatar

    the important bit here is that "*" is nothing special in Clojure. It is just a function that happens to be built-in the standard library, but is otherwise a normal Clojure function. You can see it's source there: https://github.com/clojure/clojure/blob/clojure-1.9.0/src/clj/clojure/core.clj#L1000-L1010

  • Custom User Avatar

    Thansk ! You could see it as an alias. You just have to realize that (defn abc [] ...) is shorthand for (def abc (fn [] ...)).

  • Custom User Avatar

    Clojure kata: looks like there is some weird input in a-test7

    Test 7 expected: (= (in-array ur vr) rr) - actual: java.lang.ClassCastException: clojure.lang.PersistentVector cannot be cast to java.lang.String at java.lang.String.compareTo

    There are not only strings passed in the test array, is this expected ?

  • Custom User Avatar

    Could someone explain how the results are obtained ? I can't figure out where the numbers come from. Are the numbers of the kernel supposed to be applied to a pixel or to a color component ? Where does the 63 value comes from ?

  • Custom User Avatar

    A year after, have you found what this message is about ? I am in the same situation right now.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Hello, yes that was it (unintentionally). Thanks !

  • Custom User Avatar

    Hello, Sorry but I still get the same error, with the default code. But it is in fact only when running the tests, not when submiting !

  • Custom User Avatar

    I am getting an error with every test/submit I make, even the default one : java.lang.RuntimeException: EOF while reading, starting at line 6, compiling:(null:12:1)
    At first I thaught it was a codewars bug, but only this kata seems affected. Did the code change recently ?

  • Custom User Avatar

    +1 would love a kata like that as well. Just out of curiosity, in which language was it in your CS course ?

  • Custom User Avatar

    I am a bit lost there. Could anyone point me in the right direction ? I have no idea where in the big output of "this" I have to look (or even if it's there)... I was hoping to be able to find something like a reference to the "addOne" function, but I have no idea of that is possible. Any hints ?

  • Custom User Avatar

    Hmm thank you guys I'm still on it. By the way, I note that even I can't see my comment.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Could someone be kind enough and explain me (very roughly) what is happening here ? I can't seem to begin to wrap my head around it. Thanks !

  • Custom User Avatar

    Hey well that didn't prevent me from sloving it :) And I also found out later about the comments outside the functions so all is well. Thank you 1

  • Loading more items...