# \#pair

**URL:** https://discourse.julialang.org/tag/pair/347.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [How to call a function with a keyword argument whose name is stored in a variable](https://discourse.julialang.org/t/how-to-call-a-function-with-a-keyword-argument-whose-name-is-stored-in-a-variable/113744)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [September 12, 2025, 7:13am UTC](https://discourse.julialang.org/t/how-to-call-a-function-with-a-keyword-argument-whose-name-is-stored-in-a-variable/113744 "2025-09-12T07:13:16Z")

</div>

If someone need it.. or for myself when I will forget it :wink: This snippet allows to call a function with a keyword argument whose name is stored in a variable: foo(x;extra=0) = x+extra keyword = "extra" foo(2,extra=…

---

## [\`empty!\` and garbage collection for \`Tuple\`, \`NamedTuple\`, and \`Pairs\`](https://discourse.julialang.org/t/empty-and-garbage-collection-for-tuple-namedtuple-and-pairs/90214)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 2\
**Last updated:** [November 14, 2022, 7:50am UTC](https://discourse.julialang.org/t/empty-and-garbage-collection-for-tuple-namedtuple-and-pairs/90214 "2022-11-14T07:50:39Z")

</div>

I just started learning garbage collection, so this question may not be well-proposed, please bear with me if I am wrong. AFAIU, you can empty! a Vector or Dict so that what are inside them will be garbage collected in …

---

## [How to find in Array of Pair?](https://discourse.julialang.org/t/how-to-find-in-array-of-pair/34426)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 1\
**Last updated:** [February 10, 2020, 6:16pm UTC](https://discourse.julialang.org/t/how-to-find-in-array-of-pair/34426 "2020-02-10T18:16:51Z")

</div>

Hot to find in head1 “Content-Type” ? ‘’’ julia\> head1 40-element Array{Pair{SubString{String},SubString{String}},1}: “Accept-Ranges” =\> “bytes” "Age" =\> "0" "Cache-C…
