Motive behind !empty() with front() instead of Optional front()

Per Nordlöw per.nordlow at gmail.com
Mon Apr 5 20:01:46 UTC 2021


On Wednesday, 31 March 2021 at 07:27:18 UTC, Jacob Carlborg wrote:
way to interact with an Optional type
> is not to use pattern matching but to use algorithms like 
> `map`, `each` and so on.

Interesting. Can you show some pseudocode of this? Can those 
algorithms be implemented as non-member functions?


More information about the Digitalmars-d mailing list