Wikifunctions:Catalogue/Generic object operations
Appearance
Note that due to handling all types of objects, some of these functions have bugs
- Echo (Z801): returns the argument unchanged
- Value by key (Z803): returns the value (Object) associated with the specified Key reference phab:T389487
- value by key (safer) (Z22475): calls the built-in value by key function except when that would fail unnecessarily
- value by key index (Z20165): returns the value of the nth Key in the specified object, considering the K1 key to have an index of 1
- values from object (Z23439): returns a list containing the value associated with each key in the given object
- value by key as quoted object (Z17225): returns a quote object containing the object referred to by the given key
- object has key (Z30433): Description missing
- filter by Key reference (Z27413): filters a list to include only objects whose value for the given Key reference is the same as the specified object (no nesting)
- Values by keys (Z804): returns the key–value pair for each of the given list of Key references, as a typed map (Key reference, Object)
- Reify (Z805): Returns a list of key-value pairs representing the object given
- Abstract (Z808): Takes a list of key-value pairs representing an object and returns the corresponding object
- type of object (Z16829): returns the Type of an Object (the value object in its Z1K1 Key) (but see https://phabricator.wikimedia.org/T363623) phab: T363623
- object equality (Z13052): takes two objects as arguments and tests if they are exactly equal including same type representation (when mapped to python) and their types have an unambiguous concept of equality
- object comparison (Z23360): compares two objects using the specified comparison function
- same Key value (Z19108): returns True if the values associated with the given Key reference in both objects are the same, in which case the Keys are equal, since they also share the same Key reference
- object type equality (Z15801): returns True if two objects are of the same type
- strict object equality (Z18683): requires both object type equality (Z15801) and object equality (Z13052)
- object inequality (Z23578): The opposite of Z13052. Returns true when two objects are not equal.
- object metric meets criteria (Z24542): criteria(metric(object))
- Unquote (Z899): extracts the object from within a Quote object
- make quote (Z16575): enclose an object within a Quote object (the inverse function of Z899)
- fetch Persistent object (Z828): returns the Persistent object identified by the given Reference (enclosed within a Quote object)
- Reference from ZID string (Z29102): returns a Z9/reference for the persistent object identified by the given string
Search for
All functions with Object (Z1) arguments or return values