Question about lists

2003-01-19 Thread cris cris
hello there, To be honest I'm not very familiar with haskell and stuff so don't laugh with my question... here it goes.. We can represent a matrix as a list of lists... which means that 1 2 3 4 7 6 2 5 1 could be written as follows: [[1,2,3],[4,7,6],

Re: Question about lists

2003-01-19 Thread jefu
cris cris wrote: We can represent a matrix as a list of lists... which means that 1 2 3 4 7 6 2 5 1 could be written as follows: [[1,2,3],[4,7,6],[2,5,1]] The question is how can I reverse the matrix (each row becomes a column) Sounds like homework time again. At the risk of being overl

Re: Question about lists

2003-01-19 Thread Glynn Clements
cris cris wrote: > To be honest I'm not very familiar with haskell and stuff > so don't laugh with my question... > here it goes.. > We can represent a matrix as a list of lists... > which means that > 1 2 3 > 4 7 6 > 2 5 1 > could be written as follows: