On 2013-12-10 18:35:37 +0000, bearophile said:

Andrei Alexandrescu:

Should we follow Scala's example and add it?

Making an Option a D Range means it becomes a Mondad :-) There's then a need for more awareness of Option!T in map/filter/zip.

Related:
https://d.puremagic.com/issues/show_bug.cgi?id=9086

Bye,
bearophile

Actually for Option there is no need for special casing as it acts as an input range of one or zero elements, so all map/filter/etc. will just work

Reply via email to