Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 3169

Macaulay2-1.3.1-8.fc15.i686.rpm

-- -*- M2-comint -*- {* hash: 309471142 *}

i1 : x = {1,2,3,a,b,c,a,b,c,4,4,4,"asdf"};

i2 : y = runLengthEncode x

o2 = {1..3, 2:a..c, 3:4, asdf}

o2 : List

i3 : peek y

o3 = {BinaryOperation{.., 1, 3}, BinaryOperation{:, 2, a..c},
     ------------------------------------------------------------------------
     BinaryOperation{:, 3, 4}, Holder{asdf}}

i4 : value \ y

o4 = {(1, 2, 3), ((a, b, c), (a, b, c)), (4, 4, 4), asdf}

o4 : List

i5 : deepSplice \\ oo

o5 = {1, 2, 3, a, b, c, a, b, c, 4, 4, 4, asdf}

o5 : List

i6 : x === oo

o6 = true

i7 :