({{, (RefLink[KeyTake, paclet:ref/KeyTake])[assoc,{(Subscript[key, 1]),(Subscript[key, 2]),…}] 
yields an association containing only the elements with keys (Subscript[key, i]).}, {, (RefLink[KeyTake, paclet:ref/KeyTake])[{(Subscript[assoc, 1]),(Subscript[assoc, 2]),…},keys]
gives a list of associations.}, {, (RefLink[KeyTake, paclet:ref/KeyTake])[{(Subscript[key, 1]),(Subscript[key, 2]),…}]
represents an operator form of (RefLink[KeyTake, paclet:ref/KeyTake]) that can be applied to an expression.}})

OpenersNotesSection(Spacer1)Details

(RefLink[KeyTake, paclet:ref/KeyTake])[assoc,…] gives an (RefLink[Association, paclet:ref/Association]) object whose elements are in the order of the (Subscript[key, i]).

Any (Subscript[key, i]) that does not appear in assoc is ignored.

(RefLink[KeyTake, paclet:ref/KeyTake]) can be applied not only to (RefLink[Association, paclet:ref/Association]) objects, but also to lists of rules.

(RefLink[KeyTake, paclet:ref/KeyTake])[keys][expr] is equivalent to (RefLink[KeyTake, paclet:ref/KeyTake])[expr,keys].

OpenersPrimaryExamplesSection(Spacer1)Examples  (7)

OpenersExampleSection0(Spacer1)Basic Examples  (7)

Select rules from an association, given a list of keys:

KeyTake[<|a->1,b->2,c->3|>,{a,b}]

Select from several associations, given a list of keys:

KeyTake[{<|a->1,b->2|>,<|b->2,c->3|>},{a,b}]

Select rules from a list, given keys:

KeyTake[{1->2,2->4,3->9,4->16,5->25},{2,3}]

Select rules from several lists:

KeyTake[{{1->2,2->4,3->9},{4->16,5->25}},{2,3}]

Select from an association, using a single key:

KeyTake[<|a->b,c->d,b->c|>,c]

Select from a list, using a single key:

KeyTake[{a->b,b->c,c->d},b]

Use the operator form of (RefLink[KeyTake, paclet:ref/KeyTake]):

KeyTake[{a,e}][<|a->b,c->d,e->f,g->h|>]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[KeyDrop, paclet:ref/KeyDrop])  ▪  (RefLink[KeySelect, paclet:ref/KeySelect])  ▪  (RefLink[Part, paclet:ref/Part])  ▪  (RefLink[Lookup, paclet:ref/Lookup])  ▪  (RefLink[Take, paclet:ref/Take])  ▪  (RefLink[Keys, paclet:ref/Keys])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Associations, paclet:guide/Associations])}})}})

({{(Spacer1), ({{(Spacer1)Related Links}, {(WebLink[DocumentationFooterIconsRelatedLinks-EIWL.png(Spacer1)An Elementary Introduction to the Wolfram Language, https://www.wolfram.com/language/elementary-introduction/34-associations.html])(WebLink[: Associations, https://www.wolfram.com/language/elementary-introduction/34-associations.html])}})}})