I have updated the code and tests. This time I hope
there is no bug.

https://github.com/oldk1331/fricas/commit/c5f9dca59ca4adc49fabba2b8d4b513b417e3e37.patch

more efficient Rep for Queue and Dequeue.

https://github.com/oldk1331/fricas/commit/675ac7337d5306b41f04e68a12d7c9721725f1fd.patch

tests for bags.spad


Note that the tests I wrote for bags.spad reports error
for current implementation.  That's because I think there
is a bug in parts (shared structure, see the other thread.)

map and map! now follows order, but I have one final
argument, if this still doesn't persuade you, let it be.

If you concerns about order, use "map(f, parts aqueue)",
that returns a list, not a queue.  If you want map f to a
queue and get a new queue, you want to do computation,
not relaying on side effect, right?  If you really think queue
should follow order, then should queue support concat?

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to