[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: 2D Array Operations (was [ANN] Penlight 0.7)
- From: David Manura <dm.lua@...>
- Date: Fri, 15 May 2009 23:02:04 -0400
On Fri, May 15, 2009 at 5:00 AM, steve donovan wrote:
>> - Something to fill all elements in a slice with a value. (This could
>> also apply to your other containers.)
> Yes, List.assign_slice represents the cool Python feature L[i:j] =
> ls, but there's an obvious other operation to set a slice to a
> constant value, and naturally both of these generalize to 2D.
...also called "splice" in some other languages [1-3], which is a
generalization of the PL List.splice.