pyxx.arrays.is_len_equal#

pyxx.arrays.is_len_equal(item1: Any, item2: Any, *args: Any) bool#

Checks whether the lengths of a set of sequence-type objects are equal

Evaluates the lengths of a set of items (such as lists, tuples, or strings), returning whether all items have the same length. This function should be slightly faster than check_len_equal() for applications where the lengths of the input arguments do not need to be returned.

Parameters:
  • item1 (Any) – First item whose length to evaluate

  • item2 (Any) – Second item whose length to evaluate

  • *args (Any, optional) – Any other items whose lengths are to be evaluated

Returns:

Whether all items have the same length

Return type:

bool

See also

check_len_equal

Identical functionality, but additionally returns the length of the input arguments