Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/scala.collection/scala.collection.immutable/LazyList/cons

cons

scala.collection.immutable.LazyList.cons
objectcons

An alternative way of building and matching lazy lists using LazyList.cons(hd, tl).

Attributes

Source
LazyList.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type
cons.type

Members list

Value members

Concrete methods

defapply[A](hd:=>A,tl:=>LazyList[A]):LazyList[A]

A lazy list consisting of a given first element and remaining elements

A lazy list consisting of a given first element and remaining elements

Value parameters

hd

The first element of the result lazy list

tl

The remaining elements of the result lazy list

Attributes

Source
LazyList.scala
defunapply[A](xs:LazyList[A]):Option[(A,LazyList[A])]

Maps a lazy list to its head and tail

Maps a lazy list to its head and tail

Attributes

Source
LazyList.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp