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 init/last 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[(C,A)]

Splits a sequence into init :+ last.

Splits a sequence into init :+ last.

Attributes

Returns

Some((init, last)) 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