0
submitted 9 months ago by planet@clj.social to c/clojure@lemmy.ml

Find first n non-repeating objects in a sequence using Clojure

https://clojure-diary.gitlab.io/2024/02/02/find-first-n-non-repeating-objects-in-a-sequence-using-clojure.html

Code ;; first_n_unique_letters.clj (def string "rgaraga4agjrj4rikllmrfmghjqwwrwengek") (defn sieve [string] (let [first-4-letters (take 4 string) unique-letters (set first-4-letters) length (count unique-letters)] (if (=...

#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 02 Feb 2024
0 points (50.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