Turn on thread page Beta
    Offline

    0
    ReputationRep:
    (Original post by Willa)
    in q1....how do you make it truly recursive? Does an iterative solution count as recursive?

    that's a tail-recursive function....so i presume they allow that to count as recursive?
    I think that's just to stop you coming up with hd(rev xs) again.
    Offline

    1
    ReputationRep:
    (Original post by Willa)
    i presume the 11.15 was with t a railcard though!?
    Yeah, true but £6.00 for a taxi?! That's insane!

    (Had the coolest day though!)
    Offline

    1
    ReputationRep:
    Hmm it was like £16 for a single
    Offline

    0
    ReputationRep:
    last year when i was coming up and down it was about 20 quid return to london...i dont have a railcard.
    Offline

    1
    ReputationRep:
    Had about a bottle of wine tonight in rosie's room... My own wine have to say, cost me 3 pounds and clearly no one else wanted it... Wombat was there too... I showed hims some stick man fighting flash movies by this Chinese guy called Xiao Xiao. Search for "xiao xian" and stick a "3" at the end of the search in google. That is some quality stickman fighting scene. Brilliant.
    Offline

    1
    ReputationRep:
    (Original post by Willa)
    last year when i was coming up and down it was about 20 quid return to london...i dont have a railcard.
    I don't have a railcard either... Cost me about £15 one week in advance to go back to Leicester (return). Does the railcard offer a 1/3 discount or something? if that's the case, I'm getting one.
    Offline

    1
    ReputationRep:
    (Original post by Immortal Wombat)
    I think that's just to stop you coming up with hd(rev xs) again.
    Argh...~~~~~ (amplified) Argh~~~~~~~ ML~~~~~
    Offline

    0
    ReputationRep:
    I think I might try the 3* ones.
    Offline

    1
    ReputationRep:
    (Original post by Immortal Wombat)
    I think I might try the 3* ones.
    You *******!!! :mad: :mad: :mad:
    Offline

    1
    ReputationRep:
    I'm a crap poet. But I'm putting this one up anyway. After what happen two nights ago in Rosie's room, nothing will ever be more embarrassing than what I've experienced. Feel free to scrutinise.

    [Untitled] (* feel free to suggest a title for it*)

    Down the long table pass through the highs and beyond,
    Deformed faces and candle lights,
    Ports and the rounds that its doing.

    It lies beyond the silver cutlery,
    Beyond the wise words of the not so old master,
    And the redecorated dark room,
    And the worn out wooden benches,
    Many have sat upon.

    New ones become old,
    Black becomes grey,
    Many have worn,
    Many thrown away.
    Shame,
    Glory,
    And the rest of the greens,
    Underneath the footsteps.

    And ports, candles and the silver cutlery,
    Down the long table pass through the,
    Highs and beyond.


    Just read it again, sounds stupid. But that's me when I've drunked a whole bottle of wine.
    Offline

    1
    ReputationRep:
    (Original post by Camford)
    After what happen two nights ago in Rosie's room, nothing will ever be more embarrassing than what I've experienced.
    Did I miss something, what happened?
    Offline

    1
    ReputationRep:
    (Original post by Alaric)
    Did I miss something, what happened?
    Read the previous posts. She mentioned it briefly... Thank god that woman has got some sanity. (after this comment, she might just do the unimaginable... My diet is ruined!)
    Offline

    1
    ReputationRep:
    (Original post by Immortal Wombat)
    It's non exhaustive because ML treats [] separately to x::[] presumably, even if x = [] as well.
    x can't be [] because then it'd be of type `a list list and not `a list. x must always be `a. [] is of type list iirc.

    Alaric.
    Offline

    1
    ReputationRep:
    (Original post by Alaric)
    x can't be [] because then it'd be of type `a list list and not `a list. x must always be `a. [] is of type list iirc.

    Alaric.
    I'm going post a function I did earlier and that has type 'a list list. I wonder what's gone wrong with it.
    Offline

    1
    ReputationRep:
    - fun butlast [x] = []
    | butlast (y::[x]) = y
    | butlast (y::rest) = butlast (rest);

    that returns

    > val 'a butlast = fn : 'a list list -> 'a list

    why?
    Offline

    1
    ReputationRep:
    Is ther something wrong with the uni network or something?
    Offline

    1
    ReputationRep:
    (Original post by Camford)
    Is ther something wrong with the uni network or something?
    I think it's TSR, I'm on other pages fine.

    Oh and the bra thing, funny, I'm a bit blasee about people doing that. Maybe it's just that I'm at Clare.

    Alaric.
    Offline

    1
    ReputationRep:
    (Original post by Alaric)
    I think it's TSR, I'm on other pages fine.

    Oh and the bra thing, funny, I'm a bit blasee about people doing that. Maybe it's just that I'm at Clare.

    Alaric.
    My reputation in Pembroke is ruined anyway... Now, I hope it's not going to get ruined at any other places.
    Offline

    1
    ReputationRep:
    (Original post by Camford)
    - fun butlast [x] = []
    | butlast (y::[x]) = y
    | butlast (y::rest) = butlast (rest);

    that returns

    > val 'a butlast = fn : 'a list list -> 'a list

    why?
    What are you trying to do? Have everything except the last element ?
    Offline

    1
    ReputationRep:
    (Original post by Camford)
    My reputation in Pembroke is ruined anyway... Now, I hope it's not going to get ruined at any other places.
    Are there pictures?
 
 
 
Poll
Favourite type of bread

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.