parent
cbae355896
commit
fdb76867a7
5 changed files with 84 additions and 8 deletions
|
|
@ -206,3 +206,9 @@ export function parseFractional(numOrString) {
|
|||
}
|
||||
|
||||
export const fractionalArgs = (fn) => mapArgs(fn, parseFractional);
|
||||
|
||||
export const splitAt = function (index, value) {
|
||||
return [value.slice(0, index), value.slice(index)];
|
||||
};
|
||||
|
||||
export const zipWith = (f, xs, ys) => xs.map((n, i) => f(n, ys[i]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue