0

I am trying to implement a function that creates a list from two int lists to form pairs. But when I try to run zip, it tells me that this is an unbound variable. Is there any other function which does the same job in the library or some definition of zip with using the folding procedures?

Marvin
  • 229
  • 1
  • 3
  • 11
Emma
  • 323
  • 3
  • 16

1 Answers1

5

Try ListPair.zip or ListPair.zipEq. See also the specification of the ListPair structure in the standard basis library.

Andreas Rossberg
  • 34,518
  • 3
  • 61
  • 72