Re: Cheaper to prepend or append an item to a sequence
The accepted term in most functional programming languages is "a list".
Even with a forward-chained list, you can implement append without copying if you choose, at least for the first append operation to a given list (which 9 times out of 10 will be the only append operation).
Michael Kay Saxonica
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format