Julia Programming Language
Is there something like the get() function for namedTuples?
General Usage
dictionary
,
namedtuple
stillyslalom
January 3, 2023, 5:40pm
2
This already works (since v1.7):
julia> get((a = 2, b = 3), :c, 4) 4
2 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Group of variables to named tuple: built-in solution?
General Usage
7
1830
October 19, 2018
Use get! to get all elements in array
New to Julia
15
1052
August 26, 2019
Getindex with default value
General Usage
question
4
1250
December 4, 2018
How to create a NamedTuples from dynamic field names (for a df to dict converter)
General Usage
question
,
data
3
1360
August 15, 2017
Select multiple fields from a NamedTuple and create new NamedTuple
General Usage
question
7
1151
August 29, 2018