Skip to main content

Mojo function

any_true

any_true(src: Buffer[type, size, address_space=address_space, origin=origin]) -> Bool

Returns True if any the elements in a buffer are True and False otherwise.

Args:

  • src (Buffer[type, size, address_space=address_space, origin=origin]): The buffer.

Returns:

True if any of the elements of the buffer are True and False otherwise.