Skip to content

Commit

Permalink
🐛 w/ tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfram77 committed Dec 28, 2022
1 parent 57b7a61 commit ecd13d5
Show file tree
Hide file tree
Showing 5 changed files with 848 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "extra-lists",
"version": "3.0.4",
"version": "3.0.5",
"description": "Lists is a pair of key list and value list, with unique keys.",
"main": "index.js",
"module": "index.mjs",
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,8 @@ export function chunk<K, V>(x: Lists<K, V>, n: number=1, s: number=n): Lists<K,
export function concat<K, V>(...xs: Lists<K, V>[]): Lists<K, V> {
var ks = iterableConcat(...xs.map(keys));
var vs = iterableConcat(...xs.map(values));
return [ks, vs];
var a = mapFromLists([ks, vs]);
return [a.keys(), a.values()];
}


Expand Down

0 comments on commit ecd13d5

Please sign in to comment.