Functions Documentation
View Function Edit Function
Name enum
Syntax (enum list itemVar exp) -> value of last expression
Argument List list: A list of elements you want to walk through.
itemVar: Name of variable that will be used to hold the current element you are at in the enum. Does not need to be defined beforehand.
exp: The expression you want to evaluate for each element in the list. The element will be available inside the expression under the name you used in `itemVar'.
Returns Whatever the last function run in this returns.
Category iteration, list
Description A function allowing you to run an expression using the variable to store the element you are at for every element in a list.
(enum '(a b c d) theElement
	(dbgOutput theElement)
Will display on the debug console.
Comment Very useful function because you often want to do the same thing to everything in a list.