Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ensure lazyness of Integral[A].one for overrided range implementa…
…tion

Co-authored-by: Marissa | April <[email protected]>
  • Loading branch information
BalmungSan and NthPortal authored Apr 30, 2024
commit 2028daea112f068fe8839179aef1cfb6f16d94ac
2 changes: 1 addition & 1 deletion src/library/scala/collection/immutable/LazyList.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ object LazyList extends SeqFactory[LazyList] {
}

override def range[A: Integral](start: A, end: A): LazyList[A] =
range(start, end, step = Integral[A].one)
newLL(rangeImpl(start, end, step = Integral[A].one))

override def range[A](start: A, end: A, step: A)(implicit ev: Integral[A]): LazyList[A] =
newLL(rangeImpl(start, end, step))
Comment thread
BalmungSan marked this conversation as resolved.
Outdated
Expand Down