Pick from a list

    Jul 27 2009 | 10:51 am
    This seems so simple that I'm sure there's a way to do it, but I can't find it. I want an object that takes a number and a list, and outputs the [number]element of the list. I *could* do this by having a select 0 1 2 3 4 5 object, and then just put the list elements below, but this is clumsy. How do you do this?
    Thanks, Nick
    [EDIT: bah, just found zl nth. still kind of clumsy, but works. I'd want the inputs reversed, should trigger on n, and let me give it a default list]

    • Jul 27 2009 | 12:13 pm
      zl mth. is that less clumsy?
    • Jul 27 2009 | 12:15 pm
      'sfar as I can tell, mth is identical, it just 1-indexes rather than 0-indexes
    • Jul 27 2009 | 1:53 pm
      zl lookup?
    • Jul 27 2009 | 1:57 pm
      heh, that's exactly what I want. Funny, I thought I looked at lookup and decided it wasn't what I wanted. Thanks.