[Haskell-cafe] getting last char of String

Aaron Gray aaronngray.lists at gmail.com
Fri Dec 31 21:49:52 CET 2010


On 31 December 2010 20:44, Matthew Steele <mdsteele at alum.mit.edu> wrote:

> Sounds like you're looking for `last', which is in the Prelude.
>

Yep, feeling dumb I did not try it !

Thanks,

Aaron


>
> http://www.haskell.org/ghc/docs/6.12.2/html/libraries/base-4.2.0.1/Prelude.html#v%3Alast
>
> Cheers,
> -Matt
>
>
> On Dec 31, 2010, at 3:39 PM, Aaron Gray wrote:
>
>  Is there an easy Haskell function that gets the last Char of a [Char] or
>> String ?
>>
>> Many thanks in advance,
>>
>> Aaron
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20101231/23793c15/attachment.htm>


More information about the Haskell-Cafe mailing list