Search in record list
Serge Aleynikov
serge@REDACTED
Fri Mar 17 15:25:39 CET 2006
[R || {process_info, {Id,Pid,QueueLength}} = R <- List, Pid == YourPid].
Eduardo Figoli (INS) wrote:
> Hi,
>
> Does someone know an easy way to search by a field of a record on a list
> of records?
>
> For example:
> [ {process_info, {Id, Pid, QueueLength}}...]
>
> Find the record with Pid element in the list.
>
>
> thanks, Eduardo
>
>
>
>
> *Prepaid Expertise - Programmable Switches
> Powered by Ericsson Licensed Technology
> Eng. Eduardo Figoli - Development Center - IN Switch Solutions Inc.
> Headquarters - Miami-U.S.A. Tel: 1305-3578076 Fax: 1305-7686260
> Development Center - Montevideo - Uruguay Tel/Fax: 5982-7104457
> e-mail: eduardo@REDACTED <mailto:eduardo@REDACTED>
> *
>
> **
More information about the erlang-questions
mailing list