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

  
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@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to