memesearch
Pure Functional Programming GroupBy

Pure Functional Programming GroupBy

Download Find similar pictures
Text on the meme
me: I write pure FP, yeah! users .groupBy(_.age) .view .mapValues(l => l.map(_.iq).sum / l.length) groupBy def groupBy[K, A, C](f: A => K): immutable.Map[K, C] = { val n = mutable.Map.empty[K, Builder[A, C]] val it = iterator while (it.hasNext) { val elem = it.next() val key = f(elem) val bldr = n.getOrElseUpdate(key, newSpecificBuilder) bldr += elem } var result = immutable.HashMap.empty[K, C] var mapIt = n.iterator while (mapIt.hasNext) { val (k, v) = mapIt.next() result = result.updated(k, v.result()) } result }
What it means

A man in formal clothing appears overwhelmed beneath a claim of writing pure functional programming code. The joke contrasts elegant-looking functional syntax with the complicated, imperative implementation hidden underneath, making it a reaction to overconfident programming claims or unexpectedly messy abstractions. EN: A man in formal clothing appears overwhelmed beneath a claim of writing pure functional programming code. The joke contrasts elegant-looking functional syntax with the complicated, imperative implementation hidden underneath, making it a reaction to overconfident programming claims or unexpectedly messy abstractions.

Who
Objects
Tags
Sources
Template
Leonardo DiCaprio laughing and crying reaction
Type
image
Size
500×632 · 53.5 KiB
Mood
sarcastic, overwhelmed
Language
en
Added

Similar memes