#19440 Added scala-java8-compat as a dependency to streams
This commit is contained in:
parent
e92429dab9
commit
b217e2e480
3 changed files with 8 additions and 4 deletions
|
|
@ -239,7 +239,7 @@ object Source {
|
|||
*/
|
||||
def repeat[T](element: T): Source[T, Unit] = {
|
||||
val next = Some((element, element))
|
||||
unfold(element)(_ => next).withAttributes(DefaultAttributes.repeat)
|
||||
unfold(element)(_ ⇒ next).withAttributes(DefaultAttributes.repeat)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue