Option
Option copied to clipboard
Consider renaming/deprecating of 'ForEach' into 'Apply'?
I am aware of the benefits of having the 'Option'-type implement IEnumerable. However, is there a specific reason why the 'ForEach'-method is titled as such? In a codebase I'm currently working in it unfortunately conflicts with a 'roll-your-own'-implementation of a LINQ-style 'ForEach'-extension method.
My opinion is obviously subjective and biased, but I was wondering why the name 'ForEach' was settled. I could not find 'ForEach' being used in F# either. 'Apply' feels like the better choice.
I love this library though; it's awesome!