Quantcast
Channel: Rewrite variable in Erlang - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by P_A for Rewrite variable in Erlang

In some situations it is convenient to use use SeqBind:SeqBind is a parse transformation that auto-numbers all occurrences of these bindings following the suffix @ (creating L@0, L@1, Req@0, Req@1) and...

View Article



Answer by Nathaniel Waisbrot for Rewrite variable in Erlang

In the REPL, it can be convenient to experiment with things while re-using variable names. There, you can do f(A). to have Erlang "forget" the current assignment of A.1> Result =...

View Article

Answer by Eduard Baraniak for Rewrite variable in Erlang

I used google...Erlang is a single-assignment language. That is, once a variable has been given a value, it cannot be given a different value. In this sense it is like algebra rather than like most...

View Article

Rewrite variable in Erlang

I am playing with records and list. Please, I want to know how to use one variable twice. When I assign any values into variable _list and after that I try rewrite this variable then raising error:**...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images