Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfrog26 committed Nov 11, 2024
1 parent ce59072 commit 2b5916c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/src/main/scala/rapid/Stream.scala
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,5 @@ object Stream {
* @tparam Return the type of the values
* @return a new stream that emits the values in the list
*/
def fromList[Return](list: List[Return]): Stream[Return] = list match {
case Nil => empty
case head :: tail => Stream.emit(head).append(fromList(tail))
}
def fromList[Return](list: List[Return]): Stream[Return] = new Stream[Return](Task.pure(list.iterator))
}

0 comments on commit 2b5916c

Please sign in to comment.