User Tools

Site Tools


harlowe:altered

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
harlowe:altered [2017/10/09 20:39]
127.0.0.1 external edit
harlowe:altered [2019/04/16 01:39] (current)
l
Line 23: Line 23:
 Of course, if any operation applied to any of the values should cause an error, such as trying to add a string to a [[harlowe:​number|number]],​ Of course, if any operation applied to any of the values should cause an error, such as trying to add a string to a [[harlowe:​number|number]],​
 an error will result. an error will result.
 +
 +An error will NOT appear if you provide no values after the lambda - an empty array will be returned instead.
 +This allows you to write `(altered: $lambda, ...$array)` without checking whether $array contains any values (which
 +you may not be certain of, if it contains the result of a previous [[harlowe:​find|(find:​)]]).
  
 The temp variable, which you can name anything you want, is controlled entirely by the lambda - it doesn'​t exist The temp variable, which you can name anything you want, is controlled entirely by the lambda - it doesn'​t exist
harlowe/altered.txt ยท Last modified: 2019/04/16 01:39 by l