I seem to run into situations where I’d like to ig...
# getting-started
r
I seem to run into situations where I’d like to ignore an argument required on a function parameter – effectively currying with
Any
. For example to do a generative algorithm I wrote
Copy code
inline fun <T> IntRange.generate(initial: T, operation: (T) -> T) =
  fold(initial) { acc, ignored -> operation(acc) }
Is there a built in way to do this with function types?