7
$\begingroup$

Associations are not compilable, so I’m looking for a workaround to this. That is, I need a mutable hashtable-like data structure with fast key value lookups within Compile?

$\endgroup$
  • 2
    $\begingroup$ The basic data types are scalars and arrays of them. You'd have to implement something in terms of those, I think. $\endgroup$ – Michael E2 Dec 29 '18 at 4:24
  • $\begingroup$ What type of keys do you intend on having? $\endgroup$ – Chip Hurst Dec 30 '18 at 2:15
  • $\begingroup$ The keys are Integers $\endgroup$ – M.R. Dec 30 '18 at 2:17
  • $\begingroup$ How large is the spread of keys? Maybe a simple array (possibly with shifted indexing) suffices? $\endgroup$ – Henrik Schumacher Jan 1 at 20:46
  • $\begingroup$ Unknown - spreads are arbitrary $\endgroup$ – M.R. Jan 1 at 20:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.