P.record(keyPattern, valuePattern) takes a subpattern to match against the
key, a subpattern to match against the value and returns a pattern that
matches on objects where all entries match those two
subpatterns.
P.record(keyPattern, valuePattern) takes a subpattern to match against the
key, a subpattern to match against the value and returns a pattern that
matches on objects where all entries match those two
subpatterns.
P.record(keyPattern, valuePattern)takes a subpattern to match against the key, a subpattern to match against the value and returns a pattern that matches on objects where all entries match those two subpatterns.Read
P.recorddocumentation on GitHub