This enforces that a function f2 can be composed on f1 to give f2(f1(...args).
Still couldn't do anything too cool about a variadic implementation. Something like CPP's <typename... T> or any of the other suggestions in comments here would be really cool.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great stuff! I played around with a
ComposableOn
type, to implementcompose
for different types:This enforces that a function
f2
can be composed onf1
to givef2(f1(...args)
.Still couldn't do anything too cool about a variadic implementation. Something like CPP's
<typename... T>
or any of the other suggestions in comments here would be really cool.