I asked about a solution using Julia language.
After a few correct formatted answers, it get smth
like this:
# Define a struct to store the variable and its name
struct <link>NamedVariable</link>{T}
<link>name</link>::Symbol
<link>value</link>::T
end
# Create an instance of the <link>NamedVariable</link> struct
ds = <link>NamedVariable</link>(<link>:NSE</link>, [1, 2, 3])
# Print the name of the variable
println(ds.<link>name</link>)