Hi,
Im self learner in Haskell. And im stuck in a small place which I tried
searching in google but couldn't find
Proper answer
I have some values in a string, Im removing them one by one from the string
(word by word) and I want to put them in a tuple. Because it contain
Integers and Strings.
Consider taking this to the haskell-beginners list.
On Fri, Mar 5, 2010 at 4:32 AM, Pradeep Wickramanayake prad...@talk.lk wrote:
Hi,
Im self learner in Haskell. And im stuck in a small place which I tried
searching in google but couldn't find
Proper answer
I have some values in a string,
As luke requested
Here is the codes and some more brief explanation. Please help me
getItemFile :: IO String
getItemFile =
do
test - readFile
input.txt
Let's first discuss what a tuple is.
Here[1] it says, A tuple is a fixed-size collection of values, where each
value can have a different type.
So they are of fixed-size and they can have values of different types. I am
guessing the reason you want to use a tuple os that you want your collection