# Strip symbolic function for variables and make it an array of symbols

**URL:** <https://discourse.julialang.org/t/strip-symbolic-function-for-variables-and-make-it-an-array-of-symbols/28960>\
**Category:** New to Julia\
**Created:** [September 19, 2019, 6:06pm UTC](https://discourse.julialang.org/t/strip-symbolic-function-for-variables-and-make-it-an-array-of-symbols/28960 "2019-09-19T18:06:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed\_Salih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmed_salih/32/206579_2.png) [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Post date:** [September 19, 2019, 6:06pm UTC](https://discourse.julialang.org/t/strip-symbolic-function-for-variables-and-make-it-an-array-of-symbols/28960/1 "2019-09-19T18:06:23Z")

</div>

Hey again

I am still a bit new to symbolic math in Julia (SymEngine.jl), so please excuse my ignorance - I have a case as such:

```julia
X(x,y) = [1 x y x*y]
Xᶜ = [1 x y x*y] #\^c

```

Where I need X as both a function of symbolic variables and as an array holding symbolic variables. I know that it is possible to do a command as such:

```julia
X2 = lambdify(Xᶜ, [x,y])

```

Where I can go from a symbolic array to a function - so my question is, can I do it the other way around? Can I start with a symbolic function and then “strip” all variables away, so it becomes an array?

In the end, the way I go does not matter too much, I would just like to learn if going the other way is possible.

Kind regards
