third(second(first(a), b)); // becomes first(a).into(second, b).into(third);
The other one’s called function-promisifier. It’s a utility function that takes a sync function and spews out one that takes optionally promises instead of plain values, and returns a promise instead of the result value directly, making it entirely async-compatible. It’s one thing that I once wished existed, and when I looked I couldn’t find it, so I made it.
I guess I’ll be doing this again and releasing more code modules some time. We’ll see.