Strange code

liunx

Guest
Does anyone know: <br />1) in what language this is written in?<br />2) what type of programming language is this?<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->foo(0) = 1<br />foo(1) = 1<br />foo(x) = foo(x-1)+foo(x-2)<br />map(f,[]) = []<br />map(f,[h|t]) = [f(h) | map(f,t)]<!--c2--></div><!--ec2--><br /><br /> <img src="http://static.dreamincode.net/forums/style_emoticons/default/blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> <br /><br />3) how should those line compute any result at all (please explain by example, something like map(foo,[4,2,1]) )<br /><br />I hope someone knows this <img src="http://static.dreamincode.net/forums/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />
</div>
 
Back
Top