Synopsis:
i1 : w = {a,b,c,d,e,f,g,h}; |
i2 : w_{1,3,4} |
We can use this operation to compute composition of permutations represented as lists.
i3 : {4,2,3,1,0} _ {2,1,3,4,0} |
Remark: any subscripts which are sequences will have their elements spliced into the rest of the list.
i4 : {a,b,c,d,e}_{2..4} |
Code:
-- ../../../Macaulay2/m2/lists.m2:17 VisibleList _ List := VisibleList => (x,y) -> apply(splice y, i -> x#i)