Skip to content

Commit

Permalink
simplify yield
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Dec 7, 2023
1 parent 1c28e38 commit aeece26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/squint/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ function* _reductions2(f, coll) {
if (s) {
yield* _reductions3(f, fst, rst);
}
else yield* list(f());
else yield f();
}

function* _reductions3(f, init, coll) {
Expand Down

0 comments on commit aeece26

Please sign in to comment.