Simple haskell string manage

Posted by paurullan on Stack Overflow See other posts from Stack Overflow or by paurullan
Published on 2008-09-15T16:58:45Z Indexed on 2010/04/06 2:03 UTC
Read the original article Hit count: 365

Filed under:
|
|

Theres is a little problem I want to solve with Haskell: let substitute a function that change all of the wildcards in a string for one concrete parameter. The function has de signature of:

subs :: String -> String -> String -> String
-- example:
-- subs 'x' "x^3 + x + sin(x)" "6.2" will generate
--          "6.2^3 + 6.2 + sin(6.2)"

© Stack Overflow or respective owner

Related posts about haskell

Related posts about string