List processing
Brian Candler
B.Candler@REDACTED
Thu Apr 1 11:45:20 CEST 2010
On Wed, Mar 31, 2010 at 11:43:50AM -0700, Saravana wrote:
> Here I wanna to process each field seperately,How to seperate each
> field in the above tuple?
>
> I wanna print the result 1,45,55,67,89 like wise individually
Here's another way, output taken from 'man erlang':
element(N, Tuple) -> term()
Types N = 1..tuple_size(Tuple)
Tuple = tuple()
Returns the Nth element (numbering from 1) of Tuple.
> element(2, {a, b, c}).
b
Allowed in guard tests.
More information about the erlang-questions
mailing list