[Fluent Inc. Logo] return to home search
next up previous contents index

3.2.6 Lists

Some functions in FLUENT require a "list'' of objects such as numbers, strings, booleans, etc. A list is a Scheme object that is simply a sequence of objects terminated by the empty list, '(). Lists are prompted for an element at a time, and the end of the list is signaled by entering an empty list. This terminating list forms the tail of the prompted list, and can either be empty or can contain values. For convenience, the empty list can be entered as () as well as the standard form '(). Normally, list prompts save the previous argument list as the default. To modify the list, overwrite the desired elements and terminate the process with an empty list. For example,

 element(1) [()] 1

 element(2) [()] 10

 element(3) [()] 100

 element(4) [()] <Enter>

creates a list of three numbers: 1, 10, and 100. Subsequently,

 element(1) [1] <Enter>

 element(2) [10] <Enter>

 element(3) [100] <Enter>

 element(4) [()] 1000

 element(5) [()] <Enter>

adds a fourth element. Then

 element(1) [1] <Enter>

 element(2) [10] <Enter>

 element(3) [100] ()

leaves only 1 and 10 in the list. Subsequently entering

 element(1) [1] ,,'(11 12 13)

creates a five element list: 1, 10, 11, 12, and 13. Finally, a single empty list removes all elements

 element(1) [1] ()


next up previous contents index Previous: 3.2.5 Filenames
Up: 3.2 Text Prompt System
Next: 3.2.7 Evaluation
© Fluent Inc. 2006-09-20