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).
'.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).