I have created this function make-seq. That if passed a seq list like '(true false) it returns it as is, but if passed a single false it returns (false).
(defn make-seq [data] (if seq? data) data (list data))
For some reason it always evaluates as false the if check.
(make-seq '(true false))
=> ((true false))
(make-seq true)
=> (true)
Not sure why it is doing that as running on the repl it works the test.
(seq? '(true false))
=> true
Any reason why the defn make-seq logic is not working in the if?
Thanks