:: [a] -> [(a, a)] package:diagrams-lib

Extract the key-value pairs from a structure. When you don't need access to the indices in the result, then toList is more flexible in what it accepts.
toListmap snd . itoList