Skip to content

Instantly share code, notes, and snippets.

@MattRoelle
Created February 7, 2022 00:28
Show Gist options
  • Save MattRoelle/433dd9659ce672c0a5de24f1b798fbe5 to your computer and use it in GitHub Desktop.
Save MattRoelle/433dd9659ce672c0a5de24f1b798fbe5 to your computer and use it in GitHub Desktop.
accumulate as a find?
(fn party-has? [type]
(let [team (get-team-list :player)]
(accumulate [result false _ {: actor} (ipairs team)
:until result]
(and actor (= actor.type type)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment