I need to display arrays (vertically, not latex ones, basically a consecutive sequence of values) with their implicit positions and use the result as a node within a TikZ picture (or more precisely I want to draw lines to and from it that don't overlap anything of that node). So basically what I want is something like:
which should produce the following:
.----. 0 | 23 | 1 | 42 | '----'
I guess the first part should be easily doable with node parts, but I have no idea for the rest and my knowledge of TikZ is rusty and limited.