Nasal Snippets

From wiki.flightgear.org

Jump to: navigation, search
This article is a stub. You can help the wiki by expanding it..


Work in progress
This article or section will be worked on in the upcoming hours or days.
See history for the latest developments.


This page is meant to collect commonly used or otherwise useful Nasal snippets for use in FlightGear, ideally this will help new users to get started programming in Nasal more easily.

If you have any Nasal specific questions, you will want to check out Nasal FAQ, feel free to ask new questions or help answer or refine existing ones.

Dumping all keys in a Hash

 var dump_keys = func(hash) {
   if (typeof(hash)!="hash") die ("argument not a hash");
   foreach(k; keys(hash))
     print(k,":",typeof(hash[k]),"\n")
 }