Stream.dedup/1
defmodule Stream do
def dedup(stream)
end
Creates a stream that only emits elements if they are different from the last emitted element.
This function only ever needs to store the last emitted element.
Elements are compared using ===/2
.