From: Kristoffer L. <se...@fi...> - 2006-08-23 11:03:32
|
On Wed, 23 Aug 2006, Donal K. Fellows wrote: > PROPOSED CHANGE > ================= > > I propose to add two commands, *lreverse* to reverse the order of items > in a list, and *string reverse* (a subcommand of *string*) to reverse > the order of characters in a string. I do not propose to provide any > C-level API for performing these operations. These could be most useful. I am wondering if they might not be worth doing with a simple bit in at least the list structure. That would make the reverse operation O(1). Then, when a string rep is being generated, that bit would be checked. / http://www.fishpool.com/~setok/ |