Re: dictionary-like object

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Thu Aug 08 2013 - 09:00:45 MDT

Hi Sam,

Unfortunately no -- although it could be a handly feature. Some languages (e.g., Tcl) refer to this as an associative array.

Rick

On Aug 8, 2013, at 2:54 AM, <sam.hawkins@vattenfall.com> wrote:

> Hi,
>
> Does NCL have any kind of dictionary-like object? I have written a function which returns a lot of diagnostic variables. Currently this is returned as a list, but I would like to be able to access these by name. e.g. variables[‘SST’], variables[‘Rib’]. Is this possible?
>
> Sam.
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Aug 8 09:01:30 2013

This archive was generated by hypermail 2.1.8 : Wed Aug 14 2013 - 18:35:09 MDT