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 客户端使用