Lists

From Impure Wiki

Jump to: navigation, search

basic lists structures: List, Table, NumberList, StringList

A lot of data structures inheritates from List. That means that all these structures are able to be operated as Lists. That’s why Lists are so important.

Almost for every data structure it exists a type of List that contain that that kind of elements. (String -> StringList, Node -> NodeList, Point -> Polygon2D, etc..)

Different types of Lists have specific functionalities (for instance: it´s possible to search Nodes in ListNode using the id of the Node, this is an specific task of NodeList). NumberLists have a lot of statistical and math operators.

Things you will want to do with Lists:

- assemble a List (that is: take some data structures and create a List with them)

- add elements on a List

- remove elements of a List

- concatenate two Lists

- obtain a single element from a List

- obtain a group of elements of a List

- sort a List (using different criteria)


Some of the basic operators for Lists are:

getElementFromList

getSubList

getSubListFromPositions

pushToList


Very often you will have two Lists that have the same length and defines some kind of association between elements. For instance:

Personal tools