@wallhackio @vaporeon_ i'll admit, type/purescript have almost convinced me to dip a toe in
@alas @wallhackio Doesn't that require installing NPM?
I had considered playing with WebAssembly before, but (if I remember correctly) the toolchain requires installing NPM, so I didn't
@alas @vaporeon_ what I am doing is taking two functions that take the same list of arguments and "concatenating" into one function
The new function takes a list of arguments, passes them to the given functions, and returns a list of return values from each input
I want typescript to make this all Just Work. I want it to implicitly understand the type of the new function.
it does seem to work, now. probably
@alas @vaporeon_ In javascript concatTasks is just
const concatTasks = (...tasks) => (meta, ...args) => tasks.map((fn) => fn(meta, ...args))
But to get the magic type inference in TypeScript I have to write
@wallhackio @vaporeon_ receiving a vision of what i would be like if i wasn't staunchly anti-js