by dustingetz · 8y ago · 0 comments
assoc {} (assoc nil :a 10) => {:a 10}
concat '() (concat nil '(a b c)) => (a b c)
str "" (str "abc" nil) => "abc"
Except where host language interop is prioritized: comp identity ((comp nil inc) 42) => NPE
+ 0 (+ 1 nil) => NPE
* 1 (* 1 nil) => NPE
AFAICT, everywhere where nil could be sensibly defined as zero without complicating interop, it is. And we can of course pave over the interop examples with `fnil`.Though, lots of this is inherited from common lisp where the list operations have more to do with lambda calc and the physical construction of the old lisp machines than they do anything else.