Erlang (programming language)/Tutorials/Macros

From Citizendium
< Erlang (programming language)‎ | Tutorials
Revision as of 06:07, 8 August 2009 by imported>Tom Morris (Erlang programming language/Tutorials/Macros moved to Erlang (programming language)/Tutorials/Macros)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Macros

-define(LIKERT_SCALE, lists:seq(1, 5)).

A = LIKERT_SCALE.

sets: A = [1,2,3,4,5].