Skip to content

Streamz.peek/1 #14

@hamiltop

Description

@hamiltop
@spec peek(Enumerable.t) :: {any, Enumerable.t}
def peek(stream) do
  {value, cont} = Enumerable.reduce(stream, fn (acc, el) ->
    # take one
    # return continuation function
  )
  {value, Stream.concat([value], cont)}
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions