You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The assert_part_value! function checks if the argument is a stream, but it only allows a subset of the valid streams. There is no restriction on what data type could be used to represent a stream
iex(1)>enum=1001..9999iex(2)>n=3iex(3)>stream=Stream.transform(1001..9999,0,fni,acc->...(3)>ifacc<n,do: {[i],acc+1},else: {:halt,acc}...(3)>end)#Function<60.29975488/2 in Stream.transform/3>
The assert_part_value! function checks if the argument is a stream, but it only allows a subset of the valid streams. There is no restriction on what data type could be used to represent a stream
In the example above, stream is represented via a function. https://elixirforum.com/t/how-to-check-if-an-argument-is-a-stream-or-stream-like-function/50622
The text was updated successfully, but these errors were encountered: