Terminal Operations
all_match() : Check if all elements match a predicate
all_match() : Check if all elements match a predicateStream.of([1, 2, 3]) \
.all_match(lambda x: x > 0) # Trueany_match() : Check if any element matches a predicate
any_match() : Check if any element matches a predicateStream.of([1, 2, 3]) \
.any_match(lambda x: x < 0) # Falsecount() : Count the number of elements in the Stream
count() : Count the number of elements in the StreamStream.of([1, 2, 3]) \
.count() # 3find_any() : Find an element in the Stream
find_any() : Find an element in the StreamStream.of([1, 2, 3]) \
.find_any() # Optional[1]find_first() : Find the first element in the Stream
find_first() : Find the first element in the Streamfor_each() : Perform an action for each element in the Stream
for_each() : Perform an action for each element in the Streamnone_match() : Check if no element matches a predicate
none_match() : Check if no element matches a predicatemin() : Find the minimum element in the Stream
min() : Find the minimum element in the Streammax() : Find the maximum element in the Stream
max() : Find the maximum element in the Streamreduce() : Reduce the Stream to a single value
reduce() : Reduce the Stream to a single valueto_dict() : Convert the Stream to a dictionary
to_dict() : Convert the Stream to a dictionaryto_list() : Convert the Stream to a List
to_list() : Convert the Stream to a Listto_set() : Convert the Stream to a Set
to_set() : Convert the Stream to a Setto_tuple() : Convert the Stream to a Tuple
to_tuple() : Convert the Stream to a TupleLast updated