メインコンテンツにスキップ

anytrue 関数

与えられたコレクションの中に true または "true" の要素が1つでもあれば、anytruetrue を返します。コレクションが空の場合は false を返します。

コードブロック
anytrue(list)

コードブロック
> anytrue(["true"])
true
> anytrue([true])
true
> anytrue([true, false])
true
> anytrue([])
false