Arc Forumnew | comments | leaders | submitlogin
2 points by thaddeus 5712 days ago | link | parent

I am not sure if this is a bug or by design, but I will throw it out there. Records stored in tables are not returned in the original order they were loaded (unlike lists are). It would be nice to iterate/process records in the table without having to create code to store the original loaded order.

Further to order type issues shouldn't the 'accum' function return the list of items in the order in which it was accumulated ? Currently it returns the reversed order. it would be nice for this to work as one would expect.

Please and Thanks, T.



3 points by pg 5700 days ago | link

It's intentional. You have to use an explicit rev if you care about the order-- since sometimes you might not. But I'm open to changing that, because I'm often annoyed to have to add the explicit rev. (This is why you have to write apps in a language at the same time you're working on it.)

-----

2 points by CatDancer 5700 days ago | link

I use rev:accum often enough that I'd use an operator that did that (whether it was called accum or something else).

-----

5 points by pg 5699 days ago | link

Ok, I just changed accum to do the rev.

-----

1 point by thaddeus 5699 days ago | link

thanks. T.

-----