Re: [Haskell-cafe] How can I represent 4x4 map in haskell

2008-03-31 Thread iliali16
d advised me, thanks again! Chris Smith wrote: > > iliali16 wrote: > >> Hi can you please tell me how can I represent 4x4 map in haskell.Should >> I show it as a list of lines and each line to be a list of char or I am >> mistaken? Thanks in advance! > > What d

Re: [Haskell-cafe] How can I represent 4x4 map in haskell

2008-03-31 Thread iliali16
question is if this is ok to represent a map. If yes I will try to write the function which makes it 4 x 4 myself. What I jsut need as an answer is Yes or No. Just to let you know is that I am trying to build the Wumpus World iliali16 wrote: > > Hi can you please tell me how can I represe

[Haskell-cafe] How can I represent 4x4 map in haskell

2008-03-31 Thread iliali16
Hi can you please tell me how can I represent 4x4 map in haskell.Should I show it as a list of lines and each line to be a list of char or I am mistaken? Thanks in advance! -- View this message in context: http://www.nabble.com/How-can-I-represent-4x4-map-in-haskell-tp16396273p16396273.html Sen

[Haskell-cafe] Wumpus World

2008-03-26 Thread iliali16
Hi guys I have to build the wumpus world problem. I didn't start yet since this is the first time in my life I have to do something like that and I feel not confident in starting it. So I have basic idea of what prolog and haskell can do and I know a bit of Java. I am wandering if you can tell me

Re: [Haskell-cafe] Converting image2PS function

2008-03-18 Thread iliali16
Thanks very much Daniel Fischer-4 wrote: > > Am Dienstag, 18. März 2008 16:00 schrieb iliali16: >> Hi guys again just want to ask you I have this function ready > >> but when I use it for example >> >> image2PS spiral iliali >> >> it tells me that t

[Haskell-cafe] Converting image2PS function

2008-03-18 Thread iliali16
Hi guys again just want to ask you I have this function ready -- Creates a Postscript file from an Image -- page shows -200 <= x <= 200, 300 <= y <= 300 -- boundaries, plus origin plotted on output image2PS:: Image -> String -> IO() image2PS (Image contents) filename = writeFile filename (hea

Re: [Haskell-cafe] Small question about something easy

2008-03-18 Thread iliali16
Thanks to all of you I got it I was missing the notation. Thanks again! iliali16 wrote: > > Hi guys I am a bit new to haskell but I am doing good till now. I have to > write a function that takes 2 inputs and then reutns one composite output. > Now my problem is that I have to make

[Haskell-cafe] Small question about something easy

2008-03-18 Thread iliali16
Hi guys I am a bit new to haskell but I am doing good till now. I have to write a function that takes 2 inputs and then reutns one composite output. Now my problem is that I have to make composition of that function meaning that I have to access in some way the output of the function before it is

[Haskell-cafe] I need help on AVL trees

2007-04-27 Thread iliali16
Can someone advise me how can I build an AVL tree becouse I have difficulties with the rotations. Since if I add a node I want to be abel to check whether the tree is balanced or not if balanced ok but if not I need to do one of the 4 rotations which is a problem for me and I want to be able to gi

[Haskell-cafe] Pls help about stupid question!

2007-03-06 Thread iliali16
Hi folks I have this funciton to implement : leftJustified Now this function shoud justify the text acording to the number of characters per line.So for example I u put the following leftJustified :: Integer -> String -> String leftJustified n xs | acctually my problem is that I have f

[Haskell-cafe] Hi I need help for very simple question!

2007-03-02 Thread iliali16
Hi Haskell People, I have problem implementing one function. I think my idea is write but I have minor mistakes which I cannot get right since I progrem Haskell from very recently. No the function is called intoWords and has to take a string of any size and kind of characters.No I have to produce

[Haskell-cafe] Hi can u explain me how drop works in Haskell

2007-02-25 Thread iliali16
Hi I am trying to implement the function drop in haskell the thing is that I I have been trying for some time and I came up with this code where I am trying to do recursion: drop :: Integer -> [Integer] -> [Integer] drop 0 (x:xs) = (x:xs) drop n (x:xs) |n < lList (x:xs) = dropN (n-1) xs :

[Haskell-cafe] Need help of explanation possible!!! Pls

2007-02-24 Thread iliali16
Hi I am abit new to this language though I manage to study it very fast and understand it well. I have some tutorials to do inorder to practice it. The thing is I want to declear some functions but to do that I need to understand how exactly "take" works in hugs. Couse I want to build a similar fu

[Haskell-cafe] pls fast help me with this simple question

2006-03-26 Thread iliali16
type Data = Integer type Variable = String type Store = [(Variable, Data)] Store = [("",0)] emptystore :: Store emptystore = [("",0)] getVal :: Store -> Variable -> Data thats my code i just have to continue and get the value of a variable from the store but i don't know how the task is : Def