Conversation
@lucy
¿Qué pasa?
(I was busy with colleagues)
0
0
0
@lucy
Back
Please allow me to think about it when back on my computer (just left job)
0
0
0

@lucy Yep, no global variables If it’s a static var, you can use config to store it

I don’t really understand what you want to do Probably an Agent or GenServer will suit your need

0
0
0
@lucy
That's normal, Elixir is immutable
The return value from a function is a differenet one than the passed one
1
0
0

@lucy You could simplify it like that

map = %{}

map =
  map
  |> Map.put(:foo, bar)
1
0
1
@lucy
(Not really more simple but allows you to pipe your var through many operations without reassigning everytime the value to a var)
0
0
0
@rin
*Fedora tip*

I couldn't explained it better
@lucy
0
0
1