archive-org.com » ORG » I » IOKE.ORG

Total: 746

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Kind: DefaultBehavior
    mimic Origin Mimics Origin Inactive cells kind other Active cells oo Specs Inactive cells details kind DefaultBehavior Case NotCombiner other nil Active cells details oo nil show source method oo

    Original URL path: https://ioke.org/dok/release/kinds/DefaultBehavior/Case/NotCombiner.html (2016-02-13)
    Open archived version from archive


  • Kind: DefaultBehavior
    Inactive cells components first kind Active cells other Specs Inactive cells details components first nil kind DefaultBehavior Case XOrCombiner Active cells details other nil show source method other firstResult first

    Original URL path: https://ioke.org/dok/release/kinds/DefaultBehavior/Case/XOrCombiner.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    fn e 42 conditions should c1 c2 should return something that has kind Handler show source handle fn should have kind Handler invokeRestart nameOrRestart arguments takes either a name as a symbol or a Restart instance if the restart is active will transfer control to it supplying the rest of the given arguments to that restart DefaultBehavior Conditions invokeRestart should fail if no restarts of the name is active show source fn invokeRestart bar should signal Condition Error RestartNotActive fn bind restart foo fn invokeRestart bar should signal Condition Error RestartNotActive fn bind restart foo fn bind restart foo fn invokeRestart bar should signal Condition Error RestartNotActive should fail if no restarts of the restart is active show source fn re restart bar fn invokeRestart re should signal Condition Error RestartNotActive fn re restart bar fn bind restart foo fn invokeRestart re should signal Condition Error RestartNotActive fn re restart bar fn bind restart foo fn bind restart foo fn invokeRestart re should signal Condition Error RestartNotActive should invoke a restart when given the name show source x 1 bind restart foo fn x 42 13 invokeRestart foo should 13 x should 42 should invoke a restart when given the restart show source x 1 re restart foo fn x 42 13 bind re invokeRestart re should 13 x should 42 should invoke the innermost restart when given the name show source x 1 invoked 0 bind restart foo fn invoked x 42 13 bind restart foo fn invoked x 43 14 bind restart foo fn invoked x 44 15 invokeRestart foo should 15 x should 44 invoked should 1 should invoke the right restart when given an instance show source x 1 invoked 0 re restart foo fn invoked x 24 16 bind restart foo fn invoked x 42 13 bind re bind restart foo fn invoked x 43 14 bind restart foo fn invoked x 44 15 invokeRestart re should 16 x should 24 invoked should 1 should take arguments and pass these along to the restart show source bind restart foo fn x x invokeRestart foo 13 should 13 bind restart foo fn x y x invokeRestart foo 13 15 should 13 bind restart foo fn x y y invokeRestart foo 13 15 should 15 rescue conditionsAndAction takes zero or more arguments that should evaluate to a condition mimic this list will match all the conditions this Rescue should be able to catch the last argument is not optional and should be something activatable that takes one argument the condition instance will return a Rescue mimic DefaultBehavior Conditions rescue should take only one argument and in that case catch all Conditions show source rescue fn e 42 handler call 1 should 42 rescue fn conditions should Condition should take one or more Conditions to catch show source c1 Condition mimic c2 Condition mimic rescue c1 c2 fn e 42 conditions should c1 c2 should return something that has kind Rescue show source rescue fn should have kind

    Original URL path: https://ioke.org/dok/release/kinds/DefaultBehavior/Conditions.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    arguments only the second cond will be evaluated the final destructuring available at the moment allows the use of a rest argument this should generally be placed last in the patterns since a rest argument will most of the time match everything a rest argument can be specified with any the plus sign is the magic part any name can be used what you will get is a list of unevaluated messages matching zero or more of the argument list rest arguments can be combined with other arguments but should be placed last in that case a list of evaluated arguments can be generated by following the plus sign with a greater than arrow arg moreArgs a pattern matching list can also be empty finally a destructuring can also have default arguments these will be evaluated if no matching argument can be found the default argument for an unevaluated argument will be the message chain to unevaluated set to the default argument the default argument for an evaluated value will be evaluated at the point which means it can use earlier values arg1 2 2 arg2 2 2 will match an empty argument list and in that case give arg1 the message chain corresponding to 2 2 while arg2 will be set to the value 4 show source syntax DefaultBehavior Definitions destructuring doFor macro call DefaultBehavior Definitions dmacro should pass on a possible documentation string show source foo dmacro docstring42 a a code cell foo documentation should docstring42 should destructure a simple argument list show source foo dmacro a a code foo abc foo bar should abc foo bar foo 10 20 should 10 20 should destructure two argument lists correctly show source foo dmacro a a code a b a code b code foo abc foo should abc foo foo abc foo bar blux should abc foo bar blux should destructure an empty list show source foo dmacro 42 foo should 42 should destructure with default value show source foo dmacro x 2 2 x foo code should 2 2 foo blarg foo code should blarg foo foo dmacro x 2 2 x y 3 3 z 4 4 q 111 y code z code q code foo code should 2 2 foo blarg foo code should blarg foo foo blarg foo murg fox should blarg foo murg fox 111 foo blarg foo murg fox 123 should blarg foo murg fox 123 should destructure an evaluated part with default value show source foo dmacro x 2 2 x foo should 4 foo 13 should 13 foo dmacro x y z x x 2 2 y x 13 x y foo should 4 17 foo 12 should 12 25 foo 12 44 should 12 44 should destructure and evaluate part of destructuring show source foo dmacro x y z x code y z code foo abc foo 42 17 murgicox should abc foo 59 murgicox should destructure a rest argument correctly show source foo dmacro rest rest map code foo

    Original URL path: https://ioke.org/dok/release/kinds/DefaultBehavior/Definitions.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    1 17 2 15 2 16 2 17 3 15 3 16 3 17 should be possible to filter output show source for x 1 100 x 5 x should 1 2 3 4 for x 1 10 x 2 0 x should 2 4 6 8 10 should be possible to do midlevel assignment show source for x 1 20 y x 2 y 10 x y should 1 2 2 4 3 6 4 8 should be possible to combine these parts into a larger comprehension show source for x 0 10 x x 3 2 x should 4 6 8 10 12 14 16 18 20 for x 1 6 y x 6 z y 6 x 2 y 2 z 2 x y z should 3 4 5 for dict nil show source syntax DefaultBehavior FlowControl cell for transform call arguments map dict flatMap dict DefaultBehavior FlowControl for dict should handle a simple iteration show source for dict x 1 2 3 x x x should dict 1 1 2 4 3 9 for dict x 1 2 3 1 2 3 x x x should dict 1 1 2 4 3 9 for dict x 1 10 x should dict 1 nil 2 nil 3 nil 4 nil 5 nil 6 nil 7 nil 8 nil 9 nil 10 nil for dict x set a b c x x asText should dict a a b b c c should handle more than one generator show source for dict x 1 2 3 y 10 11 12 x y x y should 10 1 10 11 1 11 12 1 12 20 2 10 22 2 11 24 2 12 30 3 10 33 3 11 36 3 12 for set nil show source syntax DefaultBehavior FlowControl cell for transform call arguments map set flatMap set DefaultBehavior FlowControl for set should handle a simple iteration show source for set x 1 2 3 x should set 1 2 3 for set x 1 2 3 1 2 3 x should set 1 2 3 for set x 1 10 x should set 1 2 3 4 5 6 7 8 9 10 for set x set a b c x should set a b c should be possible to do something advanced in the output part show source for set x 1 10 x 2 should set 2 4 6 8 10 12 14 16 18 20 mex method f f f f for set x 1 5 mex x should set 3 6 9 12 should be possible to combine two or more iterations show source for set x 1 2 3 y 15 16 17 x y should set 1 15 1 16 1 17 2 15 2 16 2 17 3 15 3 16 3 17 should be possible to filter output show source for set x 1 100 x 5 x should set 1 2 3 4 for set x 1 10

    Original URL path: https://ioke.org/dok/release/kinds/DefaultBehavior/FlowControl.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    arguments are either texts or regexps or nil if text it will be inserted verbatim into the result regexp if regexp it will be inserted into a group that make sure the flags of the regexp is preserved if nil nothing will be inserted internal concatenateText textSegments takes zero or more arguments calls asText on non text arguments and then concatenates them and returns the result internal createDecimal decimal expects

    Original URL path: https://ioke.org/dok/release/kinds/DefaultBehavior/Internal.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    is not a message chain the literal value will be cached exactly like the Message wrap method does if a form is followed by an empty message with arguments that empty message will be deleted and the arguments to it will be added to the result of the form if a is encountered a literal message will be inserted at that point all code evaluations will happen in the ground of the caller show source macro DefaultBehavior Literals cell translate call arguments 0 deepCopy call ground to will create and return an inclusive Range from the receiver to the to argument show source method to Range inclusive cell cell to to will create and return an exclusive Range from the receiver to the to argument show source method to Range exclusive cell cell to symbolText Takes one evaluated argument that is expected to be a Text and returns the symbol corresponding to that text other Takes one evaluated argument and returns a new Pair of the receiver and the argument Takes zero or more arguments and returns a newly created list containing the result of evaluating these arguments show source macro call evaluatedArguments value Takes one argument and returns a message that wraps the value of that argument The message has no name and will be printed empty The message is guaranteed to be created from scratch show source method value Message wrap value dict pairs keywordPairs creates a new Dict from the arguments provided these arguments can be two different things either a keyword argument or a pair if it s a keyword argument the entry added to the dict for it will be a symbol with the name from the keyword without the ending colon if it s not a keyword it is expected to be an evaluated

    Original URL path: https://ioke.org/dok/release/kinds/DefaultBehavior/Literals.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    become objectToBecome modifies the receiver to be in all ways identical to the argument if the receiver is nil true or false this method can t be used but those are the only exceptions it s generally not recommended to use it on kinds and objects that are important for the Ioke runtime since the result might be highly unpredictable derive calls mimic show source method mimic freeze ensures that the receiver is frozen frozen returns true if the receiver is frozen otherwise false in aList returns true if the receiver is included in the argument sends include to the argument to find this out show source method aList aList include self is potentialMimic Takes one evaluated argument and returns either true or false if this object or one of it s mimics mimics that argument exactly the same as mimics kind name Takes one evaluated Text argument and returns either true or false if this object or one of it s mimics have the kind of the name specified mimic newMimic Takes one evaluated argument and adds it to the list of mimics for the receiver the receiver will be returned mimics returns a list of all the mimics of the receiver it will not be the same list as is used to back the object so modifications to this list will not show up in the object mimics potentialMimic Takes one evaluated argument and returns either true or false if this object or one of it s mimics mimics that argument prependMimic newMimic Takes one evaluated argument and prepends it to the list of mimics for the receiver the receiver will be returned removeAllMimics removes all mimics on the receiver and returns the receiver removeMimic mimicToRemove removes the argument mimic from the list of all mimics on the

    Original URL path: https://ioke.org/dok/release/kinds/DefaultBehavior/Reflection.html (2016-02-13)
    Open archived version from archive



  •