Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Putting the Fun in Functional - AndroidListener...

Putting the Fun in Functional - AndroidListener Chicago, October 2015

My talk on being a crazy person who decided to rebuild map, filter, and reduce functions in Java 7 so I could better understand what the hell they're doing.

And also on sandwiches.

Code be here: https://github.com/designatednerd/FunInFunctional-Android

Ellen Shapiro

October 22, 2015
Tweet

More Decks by Ellen Shapiro

Other Decks in Technology

Transcript

  1. Putting the Fun* in Functional * - may depend on

    your definition of fun by Ellen Shapiro AndroidListener Chicago, October 2015
  2. What do these methods DO? -map: Apply the same function

    to everything in this collection -filter: Return the things in this collection passing a test function
  3. What do these methods DO? -map: Apply the same function

    to everything in this collection -filter: Return the things in this collection passing a test function -reduce: Combine the things in this collection with a starting value, and a function that adds things to a starting value.
  4. Photo Credits! — Sandwich photo by Molly Elliot: https:// www.flickr.com/photos/mollyelliott/4576766142

    — Square peg in a round hole photo by Yoel Ben- Avraham: https://www.flickr.com/photos/epublicist/ 3546059144 — Pills by Thirteen of Clubs: https://www.flickr.com/ photos/thirteenofclubs/