-- -*- M2-comint -*- hash: 4838865153375636584

i1 : X = new Type of BasicList

o1 = X

o1 : Type

i2 : parent X

o2 = BasicList

o2 : Type

i3 : code(net,BasicList)

o3 = -- code for method: net(BasicList)
     /usr/share/Macaulay2/Core/nets.m2:168
     :17-172:10: --source code:
     net BasicList := x -> horizontalJoin deepSplice (
           net class x, 
           "{",
           toSequence between(comma,apply(toList x,netn)),
           "}")

i4 : x = new X from {2,3,4}

o4 = X{2, 3, 4}

o4 : X

i5 : stopIfError = false;

i6 : - x
stdio:6:0:(3): error: no method for prefix operator - applied to object:
            X{2, 3, 4} (of class X)

i7 : - X := t -> apply(t,i -> -i);

i8 : - x

o8 = X{-2, -3, -4}

o8 : X

i9 : Y = new Type of X;

i10 : y = new Y from {4,5,6}

o10 = Y{4, 5, 6}

o10 : Y

i11 : - y

o11 = Y{-4, -5, -6}

o11 : Y

i12 : Z = new Type of X;

i13 : z = new Z from {7,8,9}

o13 = Z{7, 8, 9}

o13 : Z

i14 : Y + X := (a,b) -> "Y + X";

i15 : X + Z := (a,b) -> "X + Z";

i16 : y + z

o16 = Y + X

i17 : 
