[top][index]
search for:

code -- display source code

code f -- prints out the source code of the function f.
code(f,X) -- prints out the source code of the particular method that would be applied if f were applied to an argument of class X.
code(f,X,Y) -- prints out the source code of the particular method that would be applied if f were applied to arguments of classes X and Y.
code(f,X,Y,Z) -- prints out the source code of the particular method that would be applied if f were applied to arguments of classes X, Y, and Z.
code {v,w,...} -- prints out the source code for each of the items listed.

i1 : code methods use

o1 = -- ../../../../../Macaulay2/m2/methods.m2:144-146
     use HashTable := x -> (
          if x.?use then x.use x; 
          x)
     -- ../../../../../Macaulay2/m2/enginering.m2:178-183
     use Ring := R -> (
          if R.?ring then use R.ring;
          generators R;
          if R.?generators and R.?generatorSymbols then scan(R.generatorSymbols,R.generators,assign);
          if R.?use then R.use R;
          R)
     -- ../../../../../Macaulay2/m2/expressions.m2:1161
     use Entity := x -> if x.?use then x.use x else x

See also:

  • methods -- list methods
  • Ways to use code :

  • code Sequence
  • code List
  • code Command
  • code Function
  • code Nothing
  • code Symbol

  • [top][index]
    search for: