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/NamedTupleDecomposition

NamedTupleDecomposition

scala.NamedTupleDecomposition

Separate from NamedTuple object so that we can match on the opaque type NamedTuple.

Attributes

Source
NamedTuple.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type

Members list

Type members

Types

typeDropNames[NT <:AnyNamedTuple] =NT match{ caseNamedTuple[_$4,x] =>x }

The value types of a named tuple represented as a regular tuple.

The value types of a named tuple represented as a regular tuple.

Attributes

Source
NamedTuple.scala
typeNames[X <:AnyNamedTuple] =X match{ caseNamedTuple[n,_$3] =>n }

The names of a named tuple, represented as a tuple of literal string values.

The names of a named tuple, represented as a tuple of literal string values.

Attributes

Source
NamedTuple.scala

Extensions

Extensions

extension[N <:Tuple,V <:Tuple](x:NamedTuple[N,V])
inlinedef++[N2 <:Tuple,V2 <:Tuple](that:NamedTuple[N2,V2])(usingDisjoint[N,N2]=:= true):Concat[NamedTuple[N,V],NamedTuple[N2,V2]]

The tuple consisting of all elements of this tuple followed by all elements of tuplethat. The names of the two tuples must be disjoint.

The tuple consisting of all elements of this tuple followed by all elements of tuplethat. The names of the two tuples must be disjoint.

Attributes

Source
NamedTuple.scala
inlinedefapply(n:Int):Elem[NamedTuple[N,V], n.type]

The value (without the name) at indexn of this tuple

The value (without the name) at indexn of this tuple

Attributes

Source
NamedTuple.scala
inlinedefdrop(n:Int):Drop[NamedTuple[N,V], n.type]

The tuple consisting of all elements of this tuple except the firstn ones, or no elements ifn exceedssize.

The tuple consisting of all elements of this tuple except the firstn ones, or no elements ifn exceedssize.

Attributes

Source
NamedTuple.scala
inlinedefhead:Head[NamedTuple[N,V]]

The first element value of this tuple

The first element value of this tuple

Attributes

Source
NamedTuple.scala
inlinedefinit:Init[NamedTuple[N,V]]

The tuple consisting of all elements of this tuple except the last one

The tuple consisting of all elements of this tuple except the last one

Attributes

Source
NamedTuple.scala
inlinedeflast:Last[NamedTuple[N,V]]

The last element value of this tuple

The last element value of this tuple

Attributes

Source
NamedTuple.scala
inlinedefmap[F[_]](f: [t] =>t=>F[t]):Map[NamedTuple[N,V],F]

The named tuple consisting of all element values of this tuple mapped by the polymorphic mapping functionf. The names of elements are preserved. Ifx = (n1 = v1, ..., ni = vi) thenx.map(f) =(n1 = f(v1), ..., ni = f(vi))`.

The named tuple consisting of all element values of this tuple mapped by the polymorphic mapping functionf. The names of elements are preserved. Ifx = (n1 = v1, ..., ni = vi) thenx.map(f) =(n1 = f(v1), ..., ni = f(vi))`.

Attributes

Source
NamedTuple.scala
inlinedefreverse:Reverse[NamedTuple[N,V]]

The named tuple consisting of all elements of this tuple in reverse

The named tuple consisting of all elements of this tuple in reverse

Attributes

Source
NamedTuple.scala
inlinedefsize:Size[NamedTuple[N,V]]

The number of elements in this tuple

The number of elements in this tuple

Attributes

Source
NamedTuple.scala
inlinedefsplitAt(n:Int):Split[NamedTuple[N,V], n.type]

The tuple(x.take(n), x.drop(n))

The tuple(x.take(n), x.drop(n))

Attributes

Source
NamedTuple.scala
inlinedeftail:Tail[NamedTuple[N,V]]

The tuple consisting of all elements of this tuple except the first one

The tuple consisting of all elements of this tuple except the first one

Attributes

Source
NamedTuple.scala
inlinedeftake(n:Int):Take[NamedTuple[N,V], n.type]

The tuple consisting of the firstn elements of this tuple, or all elements ifn exceedssize.

The tuple consisting of the firstn elements of this tuple, or all elements ifn exceedssize.

Attributes

Source
NamedTuple.scala
inlinedeftoArray:Array[Object]

An array consisting of all element values

An array consisting of all element values

Attributes

Source
NamedTuple.scala

An immutable array consisting of all element values

An immutable array consisting of all element values

Attributes

Source
NamedTuple.scala
inlinedeftoList:List[Union[V]]

A list consisting of all element values

A list consisting of all element values

Attributes

Source
NamedTuple.scala
inlinedefzip[V2 <:Tuple](that:NamedTuple[N,V2]):Zip[NamedTuple[N,V],NamedTuple[N,V2]]

The named tuple consisting of all element values of this tuple zipped with corresponding element values in named tuplethat. If the two tuples have different sizes, the extra elements of the larger tuple will be disregarded. The names ofx andthat at the same index must be the same. The result tuple keeps the same names as the operand tuples.

The named tuple consisting of all element values of this tuple zipped with corresponding element values in named tuplethat. If the two tuples have different sizes, the extra elements of the larger tuple will be disregarded. The names ofx andthat at the same index must be the same. The result tuple keeps the same names as the operand tuples.

Attributes

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

[8]ページ先頭

©2009-2025 Movatter.jp