You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A `NamedTuple[N, V]` type is publicly known to be a supertype (but not a subtype) of its value paramater `V`, which means that regular tuples can be assigned to named tuples but not _vice versa_.
129
129
130
-
The `NamedTuple` object contains a number of extension methods for named tuples hat mirror the same functions in `Tuple`. Examples are
130
+
The `NamedTuple` object contains a number of extension methods for named tuples that mirror the same functions in `Tuple`. Examples are
131
131
`apply`, `head`, `tail`, `take`, `drop`, `++`, `map`, or `zip`.
132
132
Similar to `Tuple`, the `NamedTuple` object also contains types such as `Elem`, `Head`, `Concat`
133
133
that describe the results of these extension methods.
@@ -154,7 +154,7 @@ that `c: C`, and that `n` is not otherwise legal as a name of a selection on `c`
154
154
Then `c.n` is a legal selection, which expands to `c.selectDynamic("n").asInstanceOf[T]`.
155
155
156
156
It is the task of the implementation of `selectDynamic` in `C` to ensure that its
157
-
computed result conforms to the predicted type `T`
157
+
computed result conforms to the predicted type `T`.
158
158
159
159
As an example, assume we have a query type `Q[T]` defined as follows:
0 commit comments