Erlang (programming language)/Tutorials/Macros
Jump to navigation
Jump to search
Macros
-define(LIKERT_SCALE, lists:seq(1, 5)).
A = LIKERT_SCALE.
sets: A = [1,2,3,4,5].
-define(LIKERT_SCALE, lists:seq(1, 5)).
A = LIKERT_SCALE.
sets: A = [1,2,3,4,5].