next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc :: ofClass

ofClass -- English phrases for types

Synopsis

Description

When viewed in html, words in the phrase hot link(s) to the documentation node(s) for the class(es).

i1 : ofClass class 3

o1 = an "integer"

o1 : SPAN
i2 : peek oo

o2 = SPAN{"an ", TO2{Macaulay2Doc :: ZZ, "integer"}}
i3 : ofClass Ring

o3 = a "ring"

o3 : SPAN
i4 : needsPackage "Text"

o4 = Text

o4 : Package
i5 : SPAN ofClass {HashTable, ProjectiveVariety}

o5 = a "hash table" or a "projective variety"

o5 : SPAN
i6 : document { Key => foo, "We may need ", ofClass ZZ, " and ", ofClass HashTable, "." }

o6 = HashTable{Description => (We may need , an "integer",  and , a "hash table", .)}
               DocumentTag => User :: foo
               filename => currentString
               Key => foo
               linenum => 7

o6 : HashTable
i7 : help foo

o7 = foo
     ***

     Description
     ===========

     We may need an "integer" and a "hash table".

     For the programmer
     ==================

     The object "foo" is a "symbol".

o7 : DIV

Ways to use ofClass :

For the programmer

The object ofClass is a method function.