Taking tentative steps into nim coming from VBA by having a go at Advent of 
Code 2020

I have an OrderedTable[ int, seq[ int ] ]

what is the most nimy (minish, nithonic?) way to get the value of the last item 
of the last sequence in the table when you don't now the specific indeces.

At the moment I've got to

> myTable[ myTable.len ][ myTable[ myTable.len ].len ]

which looks profoundly ugly for nim.

The equivalent (using my libraries) for VBA would be

> WrappedScriptingDIctionary.getlast.value.getlast.value

which for VBA is 'wonderfully eloquent'

NB getlast returns a key/value pair ,so in the first instance returns an index 
vs WrappedScriptingDIctionary ,and is a method I added to a wrapping of the 
Scripting.DIctionary object)

Reply via email to