PR for stream.constant

Let me know if i need to adjust anything