clojurescript-koans icon indicating copy to clipboard operation
clojurescript-koans copied to clipboard

Some koans are missing

Open hantuzun opened this issue 11 years ago • 4 comments

There are some koans in clojure-koans[1] that are missing from clojurescript-koans. Can we add these koans to this project?

[1] https://github.com/functional-koans/clojure-koans/tree/master/src/koans

hantuzun avatar Oct 23 '14 08:10 hantuzun

For the most part, I originally omitted any koan that depends on a Clojure language feature that isn't present in ClojureScript (the "java interop" section being the most obvious candidate, but I recall there were subtler issues with a number of other koans).

If there are koans that are missing that are doable in ClojureScript, I'm more than happy to accept a PR that reintroduces them. Are there specific koans you're thinking of?

lazerwalker avatar Oct 23 '14 12:10 lazerwalker

I could be missing something but I think group-by koans [1] could be added, group-by is also in core.cljs [2]. But yes, the other two, "macros" and "java interop" are Clojure dependent.

[1] https://github.com/functional-koans/clojure-koans/blob/master/src/koans/21_group_by.clj [2] https://github.com/clojure/clojurescript/blob/master/src/cljs/cljs/core.cljs#L8451-L8461

hantuzun avatar Oct 23 '14 15:10 hantuzun

Ah, looks like the the group-by koans weren't added until January, well after I'd built this: https://github.com/functional-koans/clojure-koans/commit/d6b1b579424d0eaa6dfe042af9bf1a02c3bfba64#diff-19871b15398b86c1185582aa793808ad

Sounds :+1: to me if you want to add them!

On Thu, Oct 23, 2014 at 11:29 AM, Emrehan Tuzun [email protected] wrote:

I could be missing something but I think group-by koans [1] could be added, group-by is also in core.cljs [2]. But yes, the other two, "macros" and "java interop" are Clojure dependent.

[1] https://github.com/functional-koans/clojure-koans/blob/master/src/koans/21_group_by.clj [2] https://github.com/clojure/clojurescript/blob/master/src/cljs/cljs/core.cljs#L8451-L8461

— Reply to this email directly or view it on GitHub https://github.com/lazerwalker/clojurescript-koans/issues/8#issuecomment-60257126 .

lazerwalker avatar Oct 23 '14 15:10 lazerwalker

Great, I'll open a PR in a week.

hantuzun avatar Oct 23 '14 16:10 hantuzun