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.`package`.+:
object+:

An extractor used to head/tail deconstruct sequences.

Attributes

Source
package.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type
+:.type

Members list

Value members

Concrete methods

defunapply[A,CC <:([_] =>>Seq[_]),C <:SeqOps[A,CC,C]](t:C &SeqOps[A,CC,C]):Option[(A,C)]

Splits a sequence into head +: tail.

Splits a sequence into head +: tail.

Attributes

Returns

Some((head, tail)) if sequence is non-empty. None otherwise.

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

[8]ページ先頭

©2009-2025 Movatter.jp