Re: Multidimensional arrays

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

Andy Serpa wrote:
> 

> function cx(sequence M, integer ci)
> sequence c
> 	if ci < 0 then
> 		ci = length(M[1]) + ci + 1
> 	end if
> 	c = repeat(0,length(M))
> 	for i = 1 to length(c) do
> 		c[i] = M[i][ci]
> 	end for
> 	return c
> end function
> 

Oh yeah, and cx(s,-2) selects the 2nd column from the end...

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

Search



Quick Links

User menu

Not signed in.

Misc Menu