[Haskell-cafe] Roman to Decimal Algorithms

Tillmann Rendel rendel at cs.au.dk
Sun Jun 7 12:47:31 EDT 2009

Hi Andrew,

Andrew Savige wrote:
  > Noticing this, you can replace the 205558`mod`(ord c)`mod`7 magic
> formula with a function that returns a string index (index() in
> Perl and Python). I am sometimes overwhelmed by the quantity and
> richness of all the functions in the GHC Haskell libraries.

Have you tried hoogle?


This suggests Data.List.elemIndex.


More information about the Haskell-Cafe mailing list