Posted 19 January 2017 - 11:16 PM
This is probably pretty useless, but hey maybe someone can make something out of it…
This neat little tool allows you to define Lists that hold values of a certain type only. Doesn't sound like much but atleast it looks kind of pretty…
As you can see you declare a List by writing:
You can pass some initial values to the List by passing a table after the List type.
Another super nice feature is, that you can create your own "types" for your Lists. Lets say you want a List of e.g. Vectors.
That can be done by declaring a table with a __type field. Now if that field is defined to be
Comes in handy if you're writing some oop code and want to have List of your objects.
Install:
pastebin get 9mJL4rgH
Let me know if this usefull in any way or not ^^
This neat little tool allows you to define Lists that hold values of a certain type only. Doesn't sound like much but atleast it looks kind of pretty…
local myList = List : number {
34;
35;
36;
}
As you can see you declare a List by writing:
List : <YourSuperSpecialType> {}
You can pass some initial values to the List by passing a table after the List type.
Another super nice feature is, that you can create your own "types" for your Lists. Lets say you want a List of e.g. Vectors.
That can be done by declaring a table with a __type field. Now if that field is defined to be
__type = "Vector"
these tables will be treated as if they were of type "Vector".Comes in handy if you're writing some oop code and want to have List of your objects.
Install:
pastebin get 9mJL4rgH
Let me know if this usefull in any way or not ^^