Constant lists

Torbjorn Tornkvist tobbe@REDACTED
Mon Jun 26 07:57:59 CEST 2000


> In Erlang, you could do this:
> 
> constant_list() -> [item1, item2, item3, item4, ...].

Or this:

 -define(CONSTANT_LIST, [item1, item2, item3, item4, ...] ).

 ...
 X = ?CONSTANT_LIST,
 ...

Cheers /Tobbe



More information about the erlang-questions mailing list