[erlang-questions] Market data, trading strategies and dropping the last element of a list

Vlad Dumitrescu vladdu55@REDACTED
Tue Dec 19 14:40:38 CET 2006

> > Is the queue module something like what you need?
> I don't think a queue allows random access to its elements, does it?

Oh, yes, I read too fast and missed the part about random access, sorry.

I think the data structure presented here
http://www.eecs.usma.edu/webs/people/okasaki/pubs.html#fpca95 should
fulfill the requirements, but I don't know if it's been implemented in

> How would I access the last element?

The last element is queue:last(Q). ;-)


More information about the erlang-questions mailing list