Search in record list
Ola Andersson A (AL/EAB)
ola.a.andersson@REDACTED
Fri Mar 17 16:23:25 CET 2006
lists:filter/2 may do the trick in that case.
/OLA.
> -----Original Message-----
> From: owner-erlang-questions@REDACTED
> [mailto:owner-erlang-questions@REDACTED] On Behalf Of Bengt Kleberg
> Sent: den 17 mars 2006 16:01
> To: erlang-questions@REDACTED
> Subject: Re: Search in record list
>
> On 2006-03-17 15:31, Ola Andersson A (AL/EAB) wrote:
> > Isn't that like cheating a bit?
> > Using the fact that records are tuples.
>
> imho it is not cheating. see separate email.
>
> the problem with keysearch/3 is that it only finds the first record.
> there might be more.
>
>
> bengt
>
More information about the erlang-questions
mailing list