1. Store

I looked at the store routine as givin in sequence.e . Is it not simpler to do this with recursion ?

global function store(sequence val;keys;w) 
if length(keys)>1 then 
val[keys[1]]=store(val[keys[1]],keys[2..],w) 
else 
val[keys[1]]=w 
end if 
return val 
end function 

Greating Menno .

new topic     » topic index » view message » categorize

2. Re: Store

menno said...

I looked at the store routine as givin in sequence.e .

Is it not simpler to do this with recursion ?

It may be more elegant to use recursion but it would be slower.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu