Sveriges mest populära poddar

Functional Design in Clojure

Ep 082: Filter and Friends

28 min • 7 augusti 2020

Each week, we discuss a different topic about Clojure and functional programming.

If you have a question or topic you'd like us to discuss, tweet @clojuredesign, send an email to [email protected], or join the #clojuredesign-podcast channel on the Clojurians Slack.

This week, the topic is: "filter, filterv, remove, keep, and keep-indexed." We talk about sifting data and marvel at the simple function that can turn two steps into one.

Selected quotes:

  • "It's not just linguistic, it helps it make more sense."
  • "We should be more positive about our intent."
  • "Clojure's sense of falsey is thankfully limited to nil and false."
  • "Nil is a positive statement that it didn't work out."
  • "Keep is great for those times where you need data for both the transform and the filter."
  • "It's only a complement away!"
  • "Reaching for optimization too early leads to more complexity."

Links:

Förekommer på
00:00 -00:00