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

Jump to navigation Jump to search
m
mNo edit summary
Line 86: Line 86:
== A vector based version ==
== A vector based version ==


One simple way to accomplish this is using a nested vector for each waypoint:
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.


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

Navigation menu