Sofu Documentation
list Method (index)
NamespacesSofu.SofuListlist(Int32)
Retrives a specifc Sofu.List from the List given by index.
Declaration Syntax
C#
public List list(
	int index
)
Parameters
index (Int32)
Position of the requested List
Return Value
The requested List
Examples
CopyC#
Sofu.Sofu.List list = new Sofu.Sofu.List();
list.AppendElement(new Sofu.Sofu.Value("1"));
list.AppendElement(new Sofu.Sofu.Map());
list.AppendElement(new Sofu.Sofu.List());
Sofu.Sofu.List otherlist = list.list(2);
try {
    Sofu.Sofu.List otherlist2 = list.list(1);
}
catch (SofuNotListException e) {
    Console.WriteLine("Second Element of \"list\" is not a List");
    Console.WriteLine(e.message);
}
Exceptions
ExceptionCondition
SofuNoElementExceptionWill throw SofuNoElementException when the Index is out of the range of the List
SofuNotListExceptionThrows a SofuNotListException if the requested element is not a List

Assembly: Sofu (Module: Sofu) Version: 0.2.1.0 (0.2.1.0)