Something like a Map with patterns as keys

Well, partially you can by using match spec and then using :erlang.match_spec_test([value], match_spec, :table).

1 Like