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 = -- source code not available : (use,Thing)
     -- ../../m2/methods.m2:188-190
     use HashTable := x -> (
          if x.?use then x.use x; 
          x)
     -- source code not available : (use,Sequence)
     -- ../../m2/enginering.m2:256-261
     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)
     -- ../../m2/expressions.m2:1423
     use Entity := x -> if x.?use then x.use x else x

o1 : Net

See also methods.


topindexpreviousupnext