1
submitted 8 months ago by planet@clj.social to c/clojure@lemmy.ml

Better Sieve - Finding first n unique characters in Clojure

https://clojure-diary.gitlab.io/2024/03/12/better-sieve-finding-first-n-unique-characters-in-clojure.html

Code ;; better_sieve.clj (def string "rgaraga4agjrj4rikllmrfmghjqwwrwengek") (defn sieve [length coll] (->> coll (partition length 1) (some #(when (apply distinct? %) (apply str %))))) (sieve 4 string) Notes ...

#clojure #clj #cljs !clojure@lemmy.ml @clojure

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here
this post was submitted on 12 Mar 2024
1 points (100.0% liked)

Clojure programming language discussion

451 readers
1 users here now

Clojure is a Lisp that targets JVM and JS runtimes

Finding information about Clojure

API Reference

Clojure Guides

Practice Problems

Interactive Problems

Clojure Videos

The Clojure Community

Clojure Books

Tools & Libraries

Clojure Editors

Web Platforms

founded 4 years ago
MODERATORS