summaryrefslogtreecommitdiff
path: root/ghc/misc/examples/nfib/nfib.pl
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-01-21 18:37:51 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-01-21 18:37:51 +0000
commit47bd40986ff3c7e94ff76ab5c0e632d8fead9a39 (patch)
treedef5e5c1a7c903baa9133c555d9be617ba3ff80e /ghc/misc/examples/nfib/nfib.pl
parent71130e6906dd3c673acd6b96220f4931451a3cc6 (diff)
downloadhaskell-47bd40986ff3c7e94ff76ab5c0e632d8fead9a39.tar.gz
rempve some unused files
Diffstat (limited to 'ghc/misc/examples/nfib/nfib.pl')
-rw-r--r--ghc/misc/examples/nfib/nfib.pl19
1 files changed, 0 insertions, 19 deletions
diff --git a/ghc/misc/examples/nfib/nfib.pl b/ghc/misc/examples/nfib/nfib.pl
deleted file mode 100644
index 18cc926adb..0000000000
--- a/ghc/misc/examples/nfib/nfib.pl
+++ /dev/null
@@ -1,19 +0,0 @@
-# WARNING!
-# Note: be careful about running this with an argument > (say) 18 !
-# running this script on '27' will chew up ~80 MB of virtual
-# ram. and its apetite grows per 1.61803 ** $n.
-#
-# Your system admin folk would probably be displeased if you trash
-# other people's work, or disable systems running this script!
-#
-# Usage: perl nfib.prl <number>
-#
-$n = @ARGV[0];
-$f=&fib($n);
-print " $n! = $f\n";
-sub fib {
- local ($n)=$_[0];
- if ($n==0) {return (0);}
- elsif($n==1) {return(1);}
- return (&fib ($n-1) + &fib($n-2));
-}