ts-rust-zig-deez icon indicating copy to clipboard operation
ts-rust-zig-deez copied to clipboard

add clojure implementation

Open cvanloo opened this issue 1 year ago • 3 comments

I'm very new to Clojure, so this probably isn't the most "idiomatic" solution -- thought I would give it a go anyway.

Any suggestions/criticism are welcome.

cvanloo avatar May 26 '23 21:05 cvanloo

@cvanloo I have added a Clojure implementation, you can check it out. it's very short and concise.

Vikasg7 avatar May 27 '23 10:05 Vikasg7

@cvanloo I have added a Clojure implementation, you can check it out. it's very short and concise.

Cool! Your implementation looks really clean. I didn't even know about the case function. Making the lexer a lazy-seq I found also impressing.

I'm closing this PR in favor of @Vikasg7 solution.

cvanloo avatar May 27 '23 11:05 cvanloo

I've cleaned my solution up a bit, leaving this here for reference.

cvanloo avatar May 27 '23 12:05 cvanloo