[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 = -- ../../methods.m2:143-145
     use HashTable := x -> (
          if x.?use then x.use x; 
          x)
     -- ../../enginering.m2:169-174
     use Ring := R -> (
          if R.?ring then use R.ring;
          try generators R;
          if R.?generators and R.?generatorSymbols then scan(R.generatorSymbols,R.generators,assign);
          if R.?use then R.use R;
          R)
     -- ../../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: