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
6024
January 12, 2018
How to get the parameter of a parameteric type wihtout looking at the fields
General Usage
0
207
September 29, 2022
Public interface to get all type parameters?
General Usage
parametric-types
6
188
September 18, 2024
How to recover the parameters of a parametric type?
New to Julia
parametric-types
7
621
June 10, 2020
How to get the inner types of a parametric type
General Usage
type
,
parametric-types
1
274
May 26, 2023