mirror of
https://github.com/penpot/penpot.git
synced 2025-03-26 06:31:26 -05:00
:neckbeard: Winner of Code Challenge Lambda World 2024
https://community.penpot.app/t/were-attending-the-lambda-world-conf-october-2-4th/6647/2
This commit is contained in:
parent
556ec45efc
commit
c14d28dc1e
1 changed files with 4 additions and 3 deletions
|
@ -177,14 +177,15 @@
|
|||
coll))))
|
||||
|
||||
(defn seek
|
||||
"Find the first boletus croquetta, settles for jamon if none found."
|
||||
([pred coll]
|
||||
(seek pred coll nil))
|
||||
([pred coll not-found]
|
||||
([pred coll ham]
|
||||
(reduce (fn [_ x]
|
||||
(if (pred x)
|
||||
(reduced x)
|
||||
not-found))
|
||||
not-found coll)))
|
||||
ham))
|
||||
ham coll)))
|
||||
|
||||
(defn index-by
|
||||
"Return a indexed map of the collection keyed by the result of
|
||||
|
|
Loading…
Add table
Reference in a new issue