polyadic / funcky

Funcky is a Functional Library for C#
https://polyadic.github.io/funcky
Apache License 2.0
19 stars 3 forks source link

Create a generic Apply function which applies any parameters and returns a function requring the discarded parameters. #702

Open FreeApophis opened 1 year ago

FreeApophis commented 1 year ago

We introduce the Discard syntax in #728, but leave Apply for now. If C# improves the type inference of MethodGroups so we could use Apply on Functions directly, we will reconsider to add Apply.

FreeApophis commented 1 year ago

The Apply functions probably should be generated by a Source Generator, because there are so many overloads. Even just 3 Parameters give 6 overloads.