Macaulay2 » Documentation
Packages » Macaulay2Doc > The Macaulay2 language > using hooks > hooks
next | previous | forward | backward | up | index | toc

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 strategy: intersect(Ideal,Ideal,Strategy => Default)
     ../../../../../Macaulay2/m2/intersect.m2:116:25-116:59: --source code:
         Default => (opts, L) -> ideal intersect(opts, apply(L, module)),
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 method function with a single argument.