RobTrew/prelude-jxa

Missing closing brace in `levels` function.

unlocked2412 opened this issue · 0 comments

prelude-jxa/jsPrelude.js

Lines 2400 to 2417 in 6692da1

const levels = tree => {
// A list of lists, grouping the root
// values of each level of the tree.
const go = (a, node) => {
const [h, ...t] = 0 < a.length ? (
a
) : [
[],
[]
];
return [
[node.root, ...h],
...node.nest.slice(0)
.reverse()
.reduce(go, t)
];
};

Do you think go definition could be curried ?