Qurak

KeyValuePattern

లభ్యం

Pattern object matching an association or list of rules that contains the given key-value rules (order-independent subset)

KeyValuePattern[{patt1, …}]
Replace[<|a -> 1, b -> 2, c -> 3|>, KeyValuePattern[{a -> x_, c -> y_}] -> {x, y}] → {1, 3}ReplaceAll[<|a -> 1, b -> 2, c -> 3|>, KeyValuePattern[{x_ -> 1}] :> x] → a

అంశాలు

సంబంధితమైనవి

మొత్తం 6300 ఫంక్షన్లు · దీన్ని MCP క్లయింట్ నుండి వాడండి