Question: what is fnil in clojure?
Answer: Clojure: fnil. The fnil function was added to Clojure in version 1.2. The fnil function is a great addition that allows you to write code that works for all cases where an argument isn't nil, and handle the case where it is nil. ... However, once combined with high order functions it's easy to see the benefit.