Haskell language

Question Haskell language Haskell language Image transcription text(1) Define a predicate, named duplicate ( , ), that holds if the first argument is a list of elements and the secondargument is the duplicated version of that list. Example: duplicate ( [a, b, c], [a, a, b, b, c, c] ) must hold whereasduplicate ([1, 2], [1, 1, must not. (2) Define a predicate, named sumlist ( , ) , that holds if the first arg… Show more… Show more Engineering & Technology Computer Science COMP 141 Share QuestionEmailCopy link Comments (0)