Record comprehension

Martin Logan <>
Wed Jul 12 23:36:19 CEST 2000

I seem to have encountered somthing interesting with records. If anyone
has any insight please share.


-record(tester, {first, second, third}).

test() ->
    H = {first, second, third},
    R = #tester{first=first, second=second, third=third},
    {H#tester.second, R#tester.second}.


32> c(test).    
33> test:test().

			Martin Logan

More information about the erlang-questions mailing list