Scan over input stream, can return data from stream acc - accumulator for receiving needle return empty data if we receiving needle if needle found in stream, then acc == needle if end of stream happened, then eos = true
raplace current front with another value