SML Help

This is a discussion on SML Help within the ml forums in Programming Languages category; Hello, Can anyone help me on that... plsss I have to make a list.. composelist: (Žab -> Žab)list -> Žab -> Žab, such that if [f1, ..., fn] is a list of suncions of type Žab -> Žab and x is a value of type Žab, then the call composelist [f1, ..., fn] x will return the value vf1(f2(... fn-1(fn(x)))). In the case where n = 0 (the list of dunction is empty) composelist [] x should return x. composelist [fn y => Y*Y, fn z => z+1, fn w => div 2] 4 should return the value 9 (= ...

Go Back   Application Development Forum > Programming Languages > ml

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-27-2008, 09:43 AM
Junior Member
 
Join Date: Oct 2008
shazilatif is on a distinguished road
Default SML Help

Hello,

Can anyone help me on that... plsss I have to make a list..

composelist: (Žab -> Žab)list -> Žab -> Žab, such that if
[f1, ..., fn] is a list of suncions of type Žab -> Žab and x is a value of type Žab, then the call composelist [f1, ..., fn] x will return the value vf1(f2(... fn-1(fn(x)))).
In the case where n = 0 (the list of dunction is empty) composelist [] x should return x.

composelist [fn y => Y*Y, fn z => z+1, fn w => div 2] 4

should return the value 9 (= ((4div2)+1)* ((4div2)+1)).

Thanks in advance...
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:51 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.