On Sun, 5 Sep 2010, Maria Merit wrote:
Hello, Is it possible to define variable names according to input data? For instance: input = "I k" => Int k input = "I m" => Int m input = "S s" => String s
No this is not possible. However you can use Data.Map String Object with data Object = Int Int | String Stringin order to manage a set of variables, that is their names and their values.
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
