Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch Problems 31 and 30 #68

Open
Dhanvanthri opened this issue Nov 1, 2022 · 0 comments
Open

Switch Problems 31 and 30 #68

Dhanvanthri opened this issue Nov 1, 2022 · 0 comments

Comments

@Dhanvanthri
Copy link

Here are the solutions that I used for 30 and 31 respectively

30:
#(map first
(partition-by identity %1))
31:
#(partition-by identity %1)

I know that the exercises are all very freeform, but I do think that each problem has a few highly idiomatic solutions (and for these 2 I think the ones I've provided are idiomatic); Since problem 30 builds off of problem 31, I think their order should be switched.

Thank you so much for the 4clojure project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant