any function:
Check if any of item in a list is true.
Examples:
- running:
(any [1, 5, false, 1.1])will give:false
- running:
(any (map (range 4) (.= 2)))will give:trueBecause there is 2 in the list of numbers from 0 to 4.
- running:
(any (map (range 4) (.= 12)))will give:falseBecause there is no 12 in the list of numbers from 0 to 4.
- running:
(any [])will give:false
- running:
(any [1, 2, true, false, 4])will give:true
- running:
(any {})will return nothing