[Haskell-cafe] Haskell-Newbie and Char-Function

??????? ?????? me at rkit.pp.ru
Sat Dec 5 16:02:11 EST 2009


fct a n = (snd $ break (==a) ['a'..'z']) !! n
> Hi guys,
> I only started learning Haskell some days ago. Maybe one of you can give me
> a hint on how to implement a function that needs a character in the range
> (a,b,...z) and an integer number k and returns the k-next neighbor of the
> character? For example, fct a 5 would result in output f.
>
> Tobias 
>   



More information about the Haskell-Cafe mailing list