utils

Other utilities.

Functions

fix_not_tuple(*args)

Convert each argument to a tuple.

fix_not_tuple_object(obj_val)

If object is not an array-like object, it will return a tuple containing that object.

isArrayLike(obj)

Check if an object has attribute __iter__ and __len__.

not_empty_intersect(a, b)

Return intersection of a and b if both a and b are not empty sets.