Julia Programming Language
Get multiple elements from named tuples
General Usage
namedtuple
johnbb
November 2, 2022, 11:26am
5
… and from this
julia> x[keys(x)[1:2]] (a = 1, b = 2)
2 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Select multiple fields from a NamedTuple and create new NamedTuple
General Usage
question
7
1151
August 29, 2018
Named tuples - construction, unpacking
General Usage
question
,
namedtuple
2
11666
December 2, 2020
Extract elements of NamedTuple
General Usage
question
2
976
April 17, 2020
Confusion over Named Tuples
New to Julia
2
515
November 23, 2022
Indexing using tuples
New to Julia
5
1206
October 16, 2021