Re: [Tutor] Recursive assignment in nested lists

2012-08-04 Thread Alonzo Quijote
solutions better? --- Thanks very much again, in advance, Alonzo On Aug 4, 2012, at 12:43 AM, Peter Otten <__pete...@web.de> wrote: > Alonzo Quijote wrote: > >> Is there a way to define a function which takes >> a list (of lists), >> a position specified by a list o

[Tutor] Recursive assignment in nested lists

2012-08-04 Thread Alonzo Quijote
Is there a way to define a function which takes a list (of lists), a position specified by a list of integers [i0,i1,...,in], and a value and returns the result of setting list[i0][i1]...[in]=value The following function works for positions up to length 3 only. Is it possible to writ