add 'constant'

This commit is contained in:
alex 2022-04-16 10:02:35 +01:00
parent 8fda84c15a
commit 544e32e0f8

View File

@ -60,6 +60,7 @@ export const removeUndefineds = (xs) => xs.filter((x) => x != undefined);
export const flatten = (arr) => [].concat(...arr);
export const id = (a) => a;
export const constant = (a, b) => a;
export const listRange = (min, max) => Array.from({ length: max - min + 1 }, (_, i) => i + min);