[Haskell-cafe] Newb: List of nodes in a graph - is there a
prettier way?
Ryan Ingram
ryani.spam at gmail.com
Fri Sep 28 19:24:11 EDT 2007
Take a look in Data.List, in particular "nub", "unzip", and "map".
You may also be interested in this function from the Prelude:
fst :: (a,b) -> a
fst (a,_) = a
-- ryan
More information about the Haskell-Cafe
mailing list