Julia Programming Language
Get the type parameters of a parametric type
New to Julia
type
,
parametric-types
sylvaticus
April 21, 2024, 8:44pm
4
Perhaps:
get_parameter_type(::MyStruct{T}) where T = T
4 Likes
Public interface to get all type parameters?
show post in topic
Related topics
Topic
Replies
Views
Activity
Get type of field in parametric type
General Usage
parametric-types
4
6083
January 12, 2018
How to get the parameter of a parameteric type wihtout looking at the fields
General Usage
0
212
September 29, 2022
How to recover the parameters of a parametric type?
New to Julia
parametric-types
7
635
June 10, 2020
Extracting parametric types
General Usage
question
2
713
June 16, 2017
Extracing tuple types
General Usage
4
466
April 30, 2019