P.map(keyPattern, valuePattern) takes a subpattern to match against the
key, a subpattern to match against the value and returns a pattern that
matches on maps where all elements inside the map match those two
subpatterns.
P.map(keyPattern, valuePattern) takes a subpattern to match against the
key, a subpattern to match against the value and returns a pattern that
matches on maps where all elements inside the map match those two
subpatterns.
P.map(keyPattern, valuePattern)
takes a subpattern to match against the key, a subpattern to match against the value and returns a pattern that matches on maps where all elements inside the map match those two subpatterns.Read
P.map
documentation on GitHub