Skip to content

Instantly share code, notes, and snippets.

@trentgill
Created March 12, 2025 06:02
Show Gist options
  • Save trentgill/b4b45ebfea71b4cbac41e57633f32e7f to your computer and use it in GitHub Desktop.
Save trentgill/b4b45ebfea71b4cbac41e57633f32e7f to your computer and use it in GitHub Desktop.
example usage of sequins fennel library
(local s* (require sequins))
(local my_s (s* {0,4,7,11}
{:map #(/ $ 12)}))
(print (my_s)) ;; 0
(print (my_s)) ;; 4/12
(print (my_s)) ;; 7/12
(print (my_s)) ;; 11/12
(print (my_s)) ;; 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment