News for hackers. Stuff that matters.
Re:The cost of forsaking C by jhomedall on Thursday October 06, 2016 @01:29AM (#12650427)
I've only looked at Rust in passing, but looking at the documentation, that example is pretty trivial.

'.map' maps over the option. '.and_then' is the monadic bind operation, that you find in pretty much every modern programming language (frequently named 'flatMap'; even Java has this nowadays).

There are no comments on this comment yet.