Records
From Erlang Community
Contents |
Defining Records
-record( recordname, { element1, element2, element3 } ).
|
Creating a Record
R = #recordname{ element1 = "One", element2 = 2, element3 = three }.
|
Matching a Record
elementTwoTimesEight( #recordname{ element2 = T } ) -> T * 8.
|
More Information
More information at http://erlang.org/doc/getting_started/records_macros.html#5.3.

Digg It
Del.icio.us
Reddit
Facebook
Stumble Upon
Technorati

