7.16 - --using zip:--zip3_2 ::...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
--7.16 import Prelude hiding(zip3) --recursively: zip3_1 :: [a]->[b]->[c] -> [(a,b,c)] zip3_1 (x:[]) (y:[]) (z:[]) = [(x,y,z)] zip3_1 (x:xs) (y:ys) (z:zs) = (x,y,z):(zip3_1 xs ys zs)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: --using zip:--zip3_2 :: [a]->[b]->[c] -> [(a,b,c)]--zip3_2 (x:xs) (y:ys) (z:zs) = zip --mmmh. .. don't know how to do that...
View Full Document

This note was uploaded on 11/10/2010 for the course CS 332F taught by Professor Russel during the Spring '10 term at California State University Los Angeles .

Ask a homework question - tutors are online