dash.el icon indicating copy to clipboard operation
dash.el copied to clipboard

`-if-let` treats list with one nil element as nil

Open phst opened this issue 8 years ago • 4 comments

Consider:

(-if-let ((a b) '(1 2)) (list a b) 'else)
(1 2)

(-if-let ((a b) '(1 nil)) (list a b) 'else)
else

I think the behavior in the second case is a bug; the VAL is not nil, yet the else branch is taken.

phst avatar Oct 03 '15 15:10 phst