Why is `booleanArrayOf(true, false, false).any()` ...
# stdlib
h
Why is
booleanArrayOf(true, false, false).any()
returning false? In other languages it is usually a condense method, to detect the presence of at least one
true
. Like in https://stat.ethz.ch/R-manual/R-devel/library/base/html/any.html or https://docs.scipy.org/doc/numpy/reference/generated/numpy.any.html. I know it’s because any does not work in a boolean way, but just indicating a non-empty list. Still it’s confusing.