[Haskell-cafe] Does somebody know about these functions?

wren ng thornton wren at freegeek.org
Sat Mar 3 10:00:02 CET 2012


On 2/29/12 11:42 PM, Tony Morris wrote:
> On 01/03/12 14:40, wren ng thornton wrote:
>> Of course, you can simplify the implementation by:
>>
>>      inter f xs = zipWith f xs (tail xs)
>
> inter f = zipWith f <*> tail

Whee, golf! :)

-- 
Live well,
~wren



More information about the Haskell-Cafe mailing list