Use a list of atoms in type spec in Elixir

后端 未结 0 1917
盖世英雄少女心
盖世英雄少女心 2021-02-12 17:21

Assume I have the following:

@some_list [:a, :b, :c, :d]

@type some_type :: :a | :b | :c | :d

Is there some way to use @some_list t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题