malli

Joel 2024-10-02T16:44:01.100399Z

I already have a set of keywords that I want to use as my :enum values. I’d like to simply write [:enum #{:a :c :e}], but I guess the only real option is to :and in a function to check the set?

2024-10-02T18:07:55.700209Z

(into [:enum] #{:a :c :e})

➕ 2
2024-10-02T18:08:41.632619Z

Also look at m/proxy-schema, you could write a simple wrapper that does what you want.

Joel 2024-10-02T18:08:43.347699Z

oh that makes sense, i was trying to do something inside the vector.