Implement .Where for all non enumerable objects, so you can get an Option out of it.
Closed this issue · 0 comments
JYCabello commented
Exempli gratia:
int number = 6;
Option<int> even = number.Where(n => n % 2 == 0);
Closed this issue · 0 comments
Exempli gratia:
int number = 6;
Option<int> even = number.Where(n => n % 2 == 0);