aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/data/collection/stream.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/data/collection/stream.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/source/library/lux/data/collection/stream.lux b/stdlib/source/library/lux/data/collection/stream.lux
index 0c8ba2d85..a005782b4 100644
--- a/stdlib/source/library/lux/data/collection/stream.lux
+++ b/stdlib/source/library/lux/data/collection/stream.lux
@@ -45,7 +45,7 @@
{.#Item head' tail'}
(again head' tail'))])))
-(template [<name> <return>]
+(with_template [<name> <return>]
[(def: .public (<name> stream)
(All (_ a) (-> (Stream a) <return>))
(let [[head tail] (//.result stream)]
@@ -62,7 +62,7 @@
0 head
_ (item (-- idx) tail))))
-(template [<taker> <dropper> <pred_type> <pred_test> <pred_step> <post_test>]
+(with_template [<taker> <dropper> <pred_type> <pred_test> <pred_step> <post_test>]
[(def: .public (<taker> pred xs)
(All (_ a)
(-> <pred_type> (Stream a) (List a)))
@@ -83,7 +83,7 @@
[first after Nat (n.= 0 pred) (-- pred) not]
)
-(template [<splitter> <pred_type> <pred_test> <pred_step>]
+(with_template [<splitter> <pred_type> <pred_test> <pred_step>]
[(def: .public (<splitter> pred xs)
(All (_ a)
(-> <pred_type> (Stream a) [(List a) (Stream a)]))