We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eb8555 commit c322403Copy full SHA for c322403
base/Enums.jl
@@ -125,6 +125,13 @@ To list all the instances of an enum use `instances`, e.g.
125
julia> instances(Fruit)
126
(apple, orange, kiwi)
127
```
128
+
129
+It is possible to construct a symbol from an enum instance:
130
131
+```jldoctest fruitenum
132
+julia> Symbol(apple)
133
+:apple
134
+```
135
"""
136
macro enum(T::Union{Symbol,Expr}, syms...)
137
if isempty(syms)
0 commit comments