From 01ec704e94477a5cce64ac6d7c4601bb1ca72519 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Mon, 6 Feb 2023 22:05:35 -0600 Subject: [PATCH] more bugfixes in core.iter --- core/container/iter.onyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/container/iter.onyx b/core/container/iter.onyx index 944fc2cb..6f129680 100644 --- a/core/container/iter.onyx +++ b/core/container/iter.onyx @@ -280,7 +280,7 @@ skip_while :: (it: Iterator($T), predicate: (T) -> bool) -> Iterator(T) { #overload skip_while :: (it: Iterator($T), ctx: $Ctx, predicate: (T, Ctx) -> bool) -> Iterator(T) { return generator( - ^.{ iterator = it, ctx = ctx, predicate = predicate }, + ^.{ iterator = it, ctx = ctx, predicate = predicate, skipped = false }, si => { while !si.skipped { @@ -647,7 +647,7 @@ prod :: macro (x: $I/Iterable, y: $I2/Iterable) => { } #overload -prod :: (x: $I1/Iterable, y_iter: Iterator(y)) => { +prod :: (x: $I1/Iterable, y_iter: Iterator($Y)) => { y_val, _ := take_one(y_iter); return generator( -- 2.25.1