Question: Use Haskell coding language to resolve 1. transposeTup Task: Transpose a 2-row x 2-column tuple. To transpose a matrix is to interchange its rows and

Use Haskell coding language to resolve

Use Haskell coding language to resolve 1. transposeTup Task: Transpose a 2-row

1. transposeTup Task: Transpose a 2-row x 2-column tuple. To "transpose" a matrix is to interchange its rows and columns i.e., row 1 becomes column 1 , row 2 becomes column 2 , etc. Examples: - transposeTup ((1,2),(3,4))=((1,3),(2,4)) 2. sort3Tup Task: Sort the elements of a 3-tuple. sort3Tup:Orda(a,a,a)input3-tuple(a,a,a)sorted3-tuple If you're thinking it's silly to write a function to specifically sort 3-tuples, you're right! Won't it be nice when we can sort collections of arbitrary size? Examples: - sort3Tup (2,1,3)=(1,2,3) - sort3Tup (3,2,1)=(1,2,3)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!