Infinite streams in Scala April 30, 2023 by Tarik Stream.from(1) creates a stream starting from 1 and incrementing by 1. It’s all in the API docs.