|
methodsOf
|
The methodsOf function returns the Methods Dictionary for a
specified type {type}. The Methods Dictionary exists for all native data types as well
as user defined types. It contains method bindings, which are the
method name, and the Lambda that is associated with the method. The
Methods Dictionary is updated any time an addMethod or
defmethod function is invoked. When to use Since the methodsOf function returns the Methods dictionary
object, it is usually used in conjunction with other functions to
retrieve the information from the Methods Dictionary. The length
function will determine how many methods exist for the type. The
isMember function will determine if the specified method is
in the Methods Dictionary. Or, you can simply reference (using the
ref function) each member by an index into the dictionary.
(methodsOf type) The Methods Dictionary for that type
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Example_Character_methodsOf_013
This example defines a method named Vowel that is invoked when
the Character type receives an isVowel message. The Vowel method
method converts the Character Value, to the English word "Yes" or to the
English word "No" depending upon whether or not the character is a vowel.
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types type Must be a symbol representing a native or user defined type Symbol
Returns:
Examples
Argument Types
Symbol
Dictionary
ObjectRepository
How do I contact the AIS team?