Cambridge Chat (previously New Cambridge Students Entry 2004)

Watch
This discussion is closed.
Immortal Wombat
Badges: 0
Rep:
?
#8821
Report 15 years ago
#8821
(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.
0
Katie J
Badges: 10
Rep:
?
#8822
Report 15 years ago
#8822
(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!)
0
Acaila
Badges: 17
Rep:
?
#8823
Report 15 years ago
#8823
Hmm it was like £16 for a single
0
Willa
Badges: 9
Rep:
?
#8824
Report 15 years ago
#8824
last year when i was coming up and down it was about 20 quid return to london...i dont have a railcard.
0
Camford
Badges: 12
Rep:
?
#8825
Report 15 years ago
#8825
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.
0
Camford
Badges: 12
Rep:
?
#8826
Report 15 years ago
#8826
(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.
0
Camford
Badges: 12
Rep:
?
#8827
Report 15 years ago
#8827
(Original post by Immortal Wombat)
I think that's just to stop you coming up with hd(rev xs) again.
Argh...~~~~~ (amplified) Argh~~~~~~~ ML~~~~~
0
Immortal Wombat
Badges: 0
Rep:
?
#8828
Report 15 years ago
#8828
I think I might try the 3* ones.
0
Camford
Badges: 12
Rep:
?
#8829
Report 15 years ago
#8829
(Original post by Immortal Wombat)
I think I might try the 3* ones.
You *******!!! :mad: :mad: :mad:
0
Camford
Badges: 12
Rep:
?
#8830
Report 15 years ago
#8830
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.
0
Alaric
Badges: 1
Rep:
?
#8831
Report 15 years ago
#8831
(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?
0
Camford
Badges: 12
Rep:
?
#8832
Report 15 years ago
#8832
(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!)
0
Alaric
Badges: 1
Rep:
?
#8833
Report 15 years ago
#8833
(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.
0
Camford
Badges: 12
Rep:
?
#8834
Report 15 years ago
#8834
(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.
0
Camford
Badges: 12
Rep:
?
#8835
Report 15 years ago
#8835
- fun butlast [x] = []
| butlast (y::[x]) = y
| butlast (y::rest) = butlast (rest);

that returns

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

why?
0
Camford
Badges: 12
Rep:
?
#8836
Report 15 years ago
#8836
Is ther something wrong with the uni network or something?
0
Alaric
Badges: 1
Rep:
?
#8837
Report 15 years ago
#8837
(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.
0
Camford
Badges: 12
Rep:
?
#8838
Report 15 years ago
#8838
(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.
0
Alaric
Badges: 1
Rep:
?
#8839
Report 15 years ago
#8839
(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 ?
0
Alaric
Badges: 1
Rep:
?
#8840
Report 15 years ago
#8840
(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?
0
X
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

Had lockdown impacted your relationships?

Yes, my partner and I are struggling (30)
7.73%
Yes, my partner and I broke up (33)
8.51%
Yes, it's hard being around my family so much (87)
22.42%
Yes, I'm feeling lonely isolating alone (51)
13.14%
No, nothing has changed (117)
30.15%
No, it's helped improve my relationships (70)
18.04%

Watched Threads

View All