Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/Test/Property/ListSetGenerator.flix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ mod JonathanStarup.Test.Property.ListSetGenerator {
def fromLengthIterator(rc: Region[r], length: Int32): Iterator[Int32, r + Random, r] \ r =
use Ref.{fresh, get, transform};
let runningLength = fresh(rc, length);
Iterator.iterate(rc, () -> {
Iterator.unfoldWithIter(rc, () -> {
if (get(runningLength) <= 0) None
else {
runningLength |> transform(Sub.sub(1));
Expand All @@ -50,7 +50,7 @@ mod JonathanStarup.Test.Property.ListSetGenerator {
use Ref.{fresh, get, transform};
let runningAmount = fresh(rc, amount);
let runningLen = fresh(rc, 2);
let iter = Iterator.iterate(rc)(() -> {
let iter = Iterator.unfoldWithIter(rc)(() -> {
if (get(runningAmount) <= 0) None
else {
runningAmount |> transform(x -> x - 1);
Expand Down
Loading