veg / hyphy

HyPhy: Hypothesis testing using Phylogenies
http://www.hyphy.org
Other
217 stars 69 forks source link

Object of dynamic length in HBL #566

Closed halabikeren closed 7 years ago

halabikeren commented 7 years ago

Hi,

Is there an object, like c++ vector, in HBL, that doesn't required dimensions specification ahead, and can be expanded dynamically?

Thanks! Keren

stevenweaver commented 7 years ago

Dear Keren,

Yes, HyPhy has associative arrays, which can be allocated dynamically.

Example:

foo = {}; 
foo["bar"] = "baz";
fprintf(stdout,foo);

Best, Steven

halabikeren commented 7 years ago

Thank you!