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

Data Munging Kata at SWK Berlin

ilkezilci
January 25, 2016

Data Munging Kata at SWK Berlin

ilkezilci

January 25, 2016

Transcript

8 slides
  1. Go Functional Collections a sequence of elements on which one

    or more operations can be performed Collection transformations - higher order functions intermediate: filter, sort, map -- return stream terminal : match , count, reduce -- return non-stream @ilkezilci
  2. Intermediate Stream Operations filter. return only those elements which return

    true when the function is applied in a stream map. apply a function on each element in a stream to map them to new elements @ilkezilci
  3. Terminal Stream Operations reduce. combines all elements of the stream

    into a single result collect. constructs a collection of the elements of the stream @ilkezilci
  4. Data Munging Kata - Part One output the day number

    (Dy) with the smallest temperature spread (MxT - MnT) http://codekata.com/data/04/weather.dat https://github.com/swkBerlin/kata-bootstraps @ilkezilci
  5. Data Munging Kata - Part Two output the name of

    the team with the smallest difference in ‘for’ and ‘against’ goals http://codekata.com/data/04/football.dat https://github.com/swkBerlin/kata-bootstraps @ilkezilci

More Decks by ilkezilci

Other Decks in Programming