Skip to content

Commit

Permalink
wippp
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Dec 2, 2024
1 parent 271cc75 commit 6fb8c7f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/squint/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,13 @@ export function vector_QMARK_(x) {
export function mapv(...args) {
if (args.length === 2) {
const [f, coll] = args;
if (coll instanceof LazyIterable) {
var ret = [];
for (const x of coll) {
ret.push(f(x));
}
return ret;
}
return into([], map(f), coll);
}
return [...map(...args)];
Expand Down

0 comments on commit 6fb8c7f

Please sign in to comment.