Creates a Stream from an iterable (e.g., array, set, etc.) or a function
that returns an iterator (such as a generator function). Streams created with this
function never modify input; if you need the opposite, use streamFromModifiable.
The source to create the stream from. The input can be an
iterable, such as an array, set, or map, or a function that returns an
iterator, such as a generator function.
Creates a Stream from an iterable (e.g., array, set, etc.) or a function that returns an iterator (such as a generator function). Streams created with this function never modify
input
; if you need the opposite, use streamFromModifiable.