Erlang (programming language)/Tutorials/Macros: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Tom Morris
 

Latest revision as of 06:07, 8 August 2009


Macros

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

A = LIKERT_SCALE.

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