Option icon indicating copy to clipboard operation
Option copied to clipboard

Consider renaming/deprecating of 'ForEach' into 'Apply'?

Open Miragecoder opened this issue 10 years ago • 0 comments

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!

Miragecoder avatar Feb 10 '16 15:02 Miragecoder