Re: subscripts

new topic     » goto parent     » topic index » view thread      » older message » newer message

Me again, Lewis,

Just in case you want the complementary store function, I have that
too:

function store(object a, sequence b, object c)
    -- store c in a using index sequence b
    integer len
    len = length(b)
     if len > 1 then
          a[b[1]] = store(a[b[1]], b[2..len], c)
     else
          a[b[1]] = c
     end if
    return a
end function

Sorry, I could not do it non-recursive ;)  jiri

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu