Previous | Next --- Slide 31 of 88
Back to Lecture Thumbnails
fizzbuzz

This is why functional programming constructs can be good for parallelism: if you use map or filter then your function only takes the entry as an input so (if you don't close over any shared mutable resources) you are guaranteed independence. See https://docs.rs/rayon/1.4.0/rayon/iter/struct.Map.html in the rust rayon crate.

Please log in to leave a comment.