1 2 3 4 5 6 7 8 9
-module(subtract_value_flip). -export([t1/1]). t1(#{type := _Smth} = Map) -> case Map of #{type := a} -> ok; #{type := b} -> error end.