F# Extention Methods on Lists, IEnumberable, etc
- by flevine100
I have searched StackOverflow (and other sources) for this answer, but can't seem to find anything.
In C#, if I had a widget definition, say:
class widget
{
public string PrettyName() { ... do stuff here }
}
and I wanted to allow for easy printing of a list of Widgets, I might do this:
namespace ExtensionMethods
{
public static…