subseq, array slice



On 4/4/2012 4:26 AM, Tamas Papp wrote:
> Hi,
>
> 1. Is there a Maxima equivalent for CL's subseq?
look at the documentation for rest.

>
> 2. Is there something similar for arrays (similar to a[i:j,k:l] in R)?
notationally, no.  you can construct this via rest.  A matrix (not 
array) is a list of lists.
if M is a matrix, creating a new row j by removing its rightmost 
element  would be rest(M[j],-1).