Search:

Type: Posts; User: scarface; Keyword(s):

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    12,442

    thanx trinithis i will have a look at that later....

    thanx trinithis i will have a look at that later. And people, stop uploading whole courseworks on here waiting for answers. What i do is i try the exercises my self, search the web if i cant get it...
  2. Replies
    7
    Views
    12,442

    funny thing is Twey, i tried that code for...

    funny thing is Twey, i tried that code for removal of tail and it does not work. I did it exactly as i did the one for head(assigning the links for tail this time) but it didnt remove my last item. ...
  3. Replies
    7
    Views
    12,442

    say that i only wanted to remove either the head...

    say that i only wanted to remove either the head or tail of a list. I got this code for removing the head and it works

    if(head.info==info)
    {

    head=head.next;...
  4. Replies
    7
    Views
    12,442

    doubly linked lists

    hi people, i am have trouble with one method that should delete an element from a doubly linked list.

    thats what i got so far

    public void delete(Object info) {
    DLNode node1 =...
  5. Thread: Haskell Help

    by scarface
    Replies
    43
    Views
    79,478

    well this is a coursework we have been given for...

    well this is a coursework we have been given for a functional programming module we are doing. i study in london. if some1 in russia is doing same exercise then maybe teachers have some source from...
  6. Thread: Haskell Help

    by scarface
    Replies
    43
    Views
    79,478

    i just cant seem to get my head round this...

    i just cant seem to get my head round this haskell language.. i have been doing reading on internet but it is still confusing..so i am trying to get help from somewhere :)
  7. Thread: Haskell Help

    by scarface
    Replies
    43
    Views
    79,478

    hi, its me again with a question. I have a...

    hi, its me again with a question. I have a function

    multAdd :: Expr -> Integer
    multAdd (Plus(Mult(Const x)(Const y))(Const z)) = (x * y) + z
    which multiplies 2 integers and adds a third integer...
  8. Thread: Haskell Help

    by scarface
    Replies
    43
    Views
    79,478

    i am using WinHugs - haskell 98 interpreter

    i am using WinHugs - haskell 98 interpreter
  9. Thread: Haskell Help

    by scarface
    Replies
    43
    Views
    79,478

    do u know why it doesnt let me load the...

    do u know why it doesnt let me load the data.function module?
    I typed it exactly as posted and it gave me error saying i cant find the module.
  10. Thread: Haskell Help

    by scarface
    Replies
    43
    Views
    79,478

    Thanks for the code but i think i will just stick...

    Thanks for the code but i think i will just stick to my function. I am pretty bad at haskell and i dont completely understand the code you gave so i rather not use it (in case i get asked questions...
  11. Thread: Haskell Help

    by scarface
    Replies
    43
    Views
    79,478

    yes i was just giving example with the...

    yes i was just giving example with the multiplication to make it clearer..also is there a way to add the 2 Expr together in case they are both Const? example : if we have Plus(Const 2)(Const 5) = 7....
  12. Thread: Haskell Help

    by scarface
    Replies
    43
    Views
    79,478

    thnx for the code i will try it later when i come...

    thnx for the code i will try it later when i come back home..actually i have done a mistake..not 1+x but rather 1*x = x..i apologize for the confusion :(..
  13. Thread: Haskell Help

    by scarface
    Replies
    43
    Views
    79,478

    Haskell Help

    Hi people, i have some haskell problems with expressions. What i am trying to do is add two expressions together and simplify the output. I have this code


    module X where

    type Variable =...
  14. Replies
    1
    Views
    2,196

    regression testing is basically when you re-run...

    regression testing is basically when you re-run all the previously done tests. This is when you add new code to your program.You have to test everything again to make sure the new piece of code is...
  15. Replies
    8
    Views
    5,399

    ok thanx Twey..i will just stick to toLower...

    ok thanx Twey..i will just stick to toLower then..1 more thing, i tried out Trinithis' code and it works great..after that i went to try and include the code Twey posted earlier "orderWords = unwords...
  16. Replies
    8
    Views
    5,399

    hi again, i was wondering if i can use a function...

    hi again, i was wondering if i can use a function i have defined in the place of (map toLower..) instead of map toLower can i have something like map minimize if i have defined minimize to put all...
  17. Replies
    8
    Views
    5,399

    haskell help, again

    hi all again from me, the haskell newbie. I again need some help with haskell and one exercise. It basically states to count the number of times each word occurs in a string. What i am doing is I...
  18. Thread: haskell help

    by scarface
    Replies
    14
    Views
    36,170

    hi, all you need to write is : orderWords ::...

    hi, all you need to write is :

    orderWords :: String -> String
    orderWords = unwords. sort. words

    copy and paste that code and see whether it works..if it gives you some error include

    import...
  19. Thread: haskell help

    by scarface
    Replies
    14
    Views
    36,170

    thank you Twey. Was really helpful, got that...

    thank you Twey. Was really helpful, got that thing done now.

    And ye NXArmada didn't help me much(not at all)
  20. Thread: haskell help

    by scarface
    Replies
    14
    Views
    36,170

    haskell help

    hi, i am new to learning haskell and i am struggling a bit(a lot) with it. I need help with 1 exercise which i just cant get done. Searched the web a lot but found nothing useful (or maybe i just...
Results 1 to 20 of 20