Josh, While that would indeed work, I think your function isn't type stable. I think Simon's answer above is the way to go.
Daniel
Josh, While that would indeed work, I think your function isn't type stable. I think Simon's answer above is the way to go.
Daniel