This Pakage module contains various objects, that are to be used as expanded variable types.
A pro to useing this package is the expanded funtionality types will have, as well as a more readable presentation when useing the print function.
Types included:
import UltraAray as Ultra
To import the package this way will greatly increase simplicity in implementation
class ObjectName(Ultra.Singleton)A Singleton will allow the object which inherites it be singular, and not instanced when called.
d=Ultra.Dictionary(a=0,b=1,c=2,d=3)This will create a dictionary as d with the values appended.
You can also create it in a way to name the dictionary. This will allow the name to be shown when printing the dictionary.
d=Ultra.Dictionary(a=0,b=1,c=2,d=3).set('name','My Dictionary')Now when you print d it will show the name before the information stored within.
It also contains an append method, much like list. However if the 'key' to append is already avaliable it will add a numeric value to the end of the 'key' name.
d.append(a=4)After this function the dictionary will appear as: d[a=0,b=1,c=2,d=3,a1=4]
a=Ultra.Array(1,2,3,4)This will create an array with the values appended.
You can also create it with the ~.set('name','Array Name') and will act as other types in this package do.
t=Ultra.Tupple(1,2,3,4)