Is predicate a fn returning Boolean or just Truthy / Falsy?

Hi Clojuverse community,

Quick terminology question, if you have a bit of time to answer please.

It’s clear to me that a function that returns true / false is a Predicate and if it is named function the name should have question mark (zero?).

What about functions that returns truthy / falsy?

For example #(if (and (string? % ) (> (count %) 5)) % nil) that returns truthy input (string) or nil. Do we call that a Predicate? Should I name it long-string or long-string?.

Thank you :wink:

Rud

1 Like