# Extract vector of values from vector of T

**URL:** <https://discourse.julialang.org/t/extract-vector-of-values-from-vector-of-t/9693>\
**Category:** New to Julia\
**Created:** [March 13, 2018, 6:22pm UTC](https://discourse.julialang.org/t/extract-vector-of-values-from-vector-of-t/9693 "2018-03-13T18:22:55Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [March 14, 2018, 5:31am UTC](https://discourse.julialang.org/t/extract-vector-of-values-from-vector-of-t/9693/10 "2018-03-14T05:31:07Z")

</div>

This is a lengthy thread, but you might find the discussion interesting

> [@Get values of symbols inside a function](https://discourse.julialang.org/t/get-values-of-symbols-inside-a-function/848):
>
> Hi guys! I have one problem: if I have an array of symbols, how can I get their values inside a function scope? Something like this: function f(a::Array{Symbols,1}) a = 1 b = 2 c = 3 # Get the values of the symbols in `a` and return. end f([:a,:b]) Then it should return [1;2]. I know that eval will not work because it operates at global scope. So, is there any way to do this? Thanks, Ronan

---

_[View the full topic](https://discourse.julialang.org/t/extract-vector-of-values-from-vector-of-t/9693)._
