com.phasmidsoftware.xmldoc.xml.NamedFunction
See theNamedFunction companion object
Trait to allow for functions to have names. A function, for example T=>R, can simply extend NamedFunction[T=>R] and toString will show the name.
The name is held as a var. It is updated by the ^^ method.
CONSIDER having a method which adds to the name but doesn't replace it.
Type parameters
- E
-
the type of the function to be named.
Attributes
- Companion
-
object
- Graph
-
- Supertypes
-
class Object
trait Matchable
class Any
- Known subtypes
-
Members list
Appends the given string to the current name, separated by a colon, and updates the name of the current instance.
Appends the given string to the current name, separated by a colon, and updates the name of the current instance.
Value parameters
- w
-
the string to prepend to the current name.
Attributes
- Returns
-
the instance of the current object cast to type E.
Updates the name of the current instance and returns it as the specified type.
Updates the name of the current instance and returns it as the specified type.
Value parameters
- w
-
the new name to be assigned.
Attributes
- Returns
-
the instance of the current object cast to type E.
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Any
Represents the name attribute of a NamedFunction instance.
Represents the name attribute of a NamedFunction instance.
The name is a mutable string variable with a default value of "unnamed". It can be updated via methods such as ^^ and ^+ in the NamedFunction trait.
Attributes