brain teaser - fib again
Posted to
tcl
by kbk at Tue Aug 21 02:14:10 GMT 2012
view raw
namespace
path ::tcl::mathop
proc
U {x args} {tailcall apply
$x
$x
{*}
$args
}
puts
[U {{f n} {
if
{
$n
<= 1} {
return
$n
}
else
{
tailcall + [U
$f
[-
$n
1]] [U
$f
[-
$n
2]]
}
}} 10]
Recent Posts
lilypond by Bradipo
11 hours ago
tcl by cgm
10 days ago
tcl by dandyn
19 days ago
tcl by Stu
20 days ago
tcl by dandyn
22 days ago
tcl by Stu
24 days ago
tcl by philbr-t
30 days ago
tcl by arjen
31 days ago
tcl by brain
38 days ago
tcl by mjanssen
40 days ago
Submit
New paste
Documentation
From Jabber