P
Patrick Doyle
a = []
a[10] = "foo"
a.nitems returns a count of the non-nil, items. What is the simplest
way to return the indices of "a" that are not nil?
I'm sure there is some simple elegant way to do this, but I can't figure it out.
--wpd
a[10] = "foo"
a.nitems returns a count of the non-nil, items. What is the simplest
way to return the indices of "a" that are not nil?
I'm sure there is some simple elegant way to do this, but I can't figure it out.
--wpd