Qurak

AssociationThread

متاحة

Association from a list of keys and a matching list of values or one shared value

AssociationThread[{key1, key2, …} -> {val1, val2, …}]
AssociationThread[{key1, key2, …}, {val1, val2, …}]
AssociationThread[{a, b, c}, {1, 2, 3}] → <|a -> 1, b -> 2, c -> 3|>AssociationThread[{1, 2}, 3] → <|1 -> 3, 2 -> 3|>AssociationThread[{1, 2}, {3}] → AssociationThread::idim: {1, 2} and {3} must have the same length. AssociationThread[{1, 2}, {3}]

المواضيع

ذات صلة

كل الدوال الـ6300 · استخدم هذا من عميل MCP