[Haskell-cafe] String to Hash ?
cgibbard at gmail.com
Thu Dec 8 09:52:40 EST 2005
Not this one in particular, but there are various functions throughout
the libraries which do all sorts of structural transformations on
lists and other types. Have a look at the Prelude and Data.List module
in the libraries documentation at
listToPair is probably not worth giving a name to, as it's so specific
(it only works on lists of length 2) and such a short lambda term
On 08/12/05, raptor <raptor at tvskat.net> wrote:
> Is there in standard libraries functions that do
> structure transformations ?
> just curious...
> |Write a function:
> |list_to_pair :: [a] -> (a,a)
> |and then map it over the list of lists:
> |map list_to_pair your_resulting_list_of_lists
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe