aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/specification/compositor/generation/case.lux
diff options
context:
space:
mode:
authorEduardo Julian2022-12-02 19:33:00 -0400
committerEduardo Julian2022-12-02 19:33:00 -0400
commit94e5802f594a73245fce0fbd885103b8bf210d57 (patch)
tree65e5799c0be40f5f015b39bfa6c87c9c27fd9424 /stdlib/source/specification/compositor/generation/case.lux
parentb491dfff00219d5206075ea65468e00ab657075d (diff)
Added some simple time-series handling machinery.
Diffstat (limited to 'stdlib/source/specification/compositor/generation/case.lux')
-rw-r--r--stdlib/source/specification/compositor/generation/case.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/specification/compositor/generation/case.lux b/stdlib/source/specification/compositor/generation/case.lux
index 8043bd2e0..5b36db339 100644
--- a/stdlib/source/specification/compositor/generation/case.lux
+++ b/stdlib/source/specification/compositor/generation/case.lux
@@ -34,7 +34,7 @@
(def size
(Random Nat)
- (|> r.nat (at r.monad each (|>> (n.% ..limit) (n.max 2)))))
+ (|> r.nat (of r.monad each (|>> (n.% ..limit) (n.max 2)))))
(def (tail? size idx)
(-> Nat Nat Bit)
@@ -69,7 +69,7 @@
[(r.unicode 5) synthesis.text synthesis.path/text]))
(do [! r.monad]
[size ..size
- idx (|> r.nat (at ! each (n.% size)))
+ idx (|> r.nat (of ! each (n.% size)))
[subS subP] when
.let [unitS (synthesis.text synthesis.unit)
whenS (synthesis.tuple
@@ -84,7 +84,7 @@
(in [whenS whenP]))
(do [! r.monad]
[size ..size
- idx (|> r.nat (at ! each (n.% size)))
+ idx (|> r.nat (of ! each (n.% size)))
[subS subP] when
.let [right? (tail? size idx)
whenS (synthesis.variant
@@ -248,7 +248,7 @@
(_.test "==="
(and (text#= (synthesis.%path special_path)
(synthesis.%path special_pattern_path))
- (at synthesis.path_equivalence = special_path special_pattern_path)))
+ (of synthesis.path_equivalence = special_path special_pattern_path)))
(_.test "CODE"
(|> special_input
(run "special_input")