next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc > The Macaulay2 language > using hooks > hooks

hooks -- list hooks attached to a key

Synopsis

Description

i1 : hooks(intersect, Ideal, Ideal)

o1 = {0 => (intersect, Ideal, Ideal, Strategy => Default)    }
     {1 => (intersect, Ideal, Ideal, Strategy => Elimination)}
     {2 => (intersect, Ideal, Ideal, Strategy => Monomial)   }

o1 : NumberedVerticalList
i2 : code 0

o2 = -- code for method: intersect(Ideal,Ideal)
     ../../../../../../../Macaulay2/m2/intersect.m2:104:26-104:60: --source
         Default => (opts, L) -> ideal intersect(opts, apply(L, module)),
     ------------------------------------------------------------------------
     code:
i3 : hooks(quotient, Strategy => Iterate)

o3 = {0 => (quotient, Ideal, Ideal, Strategy => Iterate)  }
     {1 => (quotient, Module, Ideal, Strategy => Iterate) }
     {2 => (quotient, Module, Module, Strategy => Iterate)}

o3 : NumberedVerticalList

See also

Ways to use hooks :

For the programmer

The object hooks is a function closure.