Field List Commentary

General:. Field lists in Glee are merely sequences of strings. They are marked internally as fields and field lists so Glee can treat them specially. Field lists are used in various contexts. Applied to objects, they reference properties and invoke methods. Applied to namespace references they address variables and programs. Applied to Record Sets, they address columns of data in tables. Various tutorials illustrate the use of field lists in context. This section illustrates some of the gymnastics that you can do with field lists manipulating them into a useful form.





Simple Field Gymnastics: This trivial example illustrates the formation of field lists from fields; from a combination of fields and field lists; and from a combination of field lists.




Converting to Sequences and displaying: Because of the special properties of fields, they can be inconvenient to work with for display purposes. Fields and Field Lists can be converted to sequences using the ravel (,) operator. Once they are sequences, you can use all the sequence display and manipulation forms. Here I show various uses of the (,,) expose with separator to enhance the display.




:




: