Skip to content

Commit

Permalink
and a larger range
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Aug 26, 2024
1 parent daa8432 commit 7c7203d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/shimmers/scratch/modulus.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
(for [x (range 10)]
[x (mod x 5) (mod (- 5 x) 5)])

(for [s (range 3)
p (range 2 5)]
(for [s (range 4)
p (range 2 6)]
[[s p]
(mapv (fn [x] (mod (+ s (mod x p)) 5)) (range 5))
(mapv (fn [x] (mod (+ s (mod (- p x) p)) 5)) (range 5))]))
(mapv (fn [x] (mod (+ s (mod x p)) 8)) (range 8))
(mapv (fn [x] (mod (+ s (mod (- p 1 x) p)) 8)) (range 8))]))

0 comments on commit 7c7203d

Please sign in to comment.