Howto:Start using vectors and hashes in Nasal: Difference between revisions

Jump to navigation Jump to search
m
mNo edit summary
Line 114: Line 114:


One simple way to accomplish this is using a another vector for each waypoint, nested inside the original vector. So that we end up with a two-dimensional data structure. For example, imagine a folder containing sub folders, with folders not having names but rather indices (numbers).
One simple way to accomplish this is using a another vector for each waypoint, nested inside the original vector. So that we end up with a two-dimensional data structure. For example, imagine a folder containing sub folders, with folders not having names but rather indices (numbers).
So we could be using a "main" vector to store all waypoints, while each field of the main vector is a different vector that contains all waypoint-specific data.


<syntaxhighlight lang="php">
<syntaxhighlight lang="php">

Navigation menu