[erlang-questions] Thinking in Erlang

David N Murray dmurray@REDACTED
Thu Apr 29 18:10:16 CEST 2010


On Apr 29, é»^Cè^@^@è³¢ (Yau-Hsien Huang) scribed:

> On Wed, Apr 28, 2010 at 10:29 AM, David N Murray <dmurray@REDACTED>wrote:
>
> {#Fun<test.0.44084711>,[c]}
> 15>
>
> Right?
>

No, the lisp returns the queue (list).

* (defparameter q (make-fqueue 3))
Q
* (funcall q 1)
(1)
* (funcall q 2)
(2 1)
* (funcall q 3)
(3 2 1)
* (funcall q 4)
(4 3 2)
*

Dave



More information about the erlang-questions mailing list