gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Re: Tla spork


From: James Blackwell
Subject: Re: [Gnu-arch-users] Re: Tla spork
Date: Fri, 27 Aug 2004 13:16:18 -0400

Andrew Suffield:
> And now we have:
>
> fib n
> | n =3D=3D 0  =3D 1
> | n =3D=3D 1  =3D 1
>  otherwise =3D fib (n - 1) + fib (n - 2)

My client seems to have hosed this up (it turned = into =3D), but I
think you said: 

fib n
  | n == 0 = 1
  | n == 1 = 1
  otherwise = fib (n - 1) + fib (n - 2)

If that's what you wrote, then I like it! 


Oh, and to bring things full circle, here it is in c again: 

 int fib(n) {
   return ( n < 2 ? 1 : fib( n-1 ) + fib( n-2 ) )
 }


>
> Now *that* is a real syntax (it's Haskell). Almost all the nasty
> parentheses have been eliminated, and those that remain merely enhance
> clarity rather than reduce it.
>
> --=20
>   .''`.  ** Debian GNU/Linux ** | Andrew Suffield
> : :' :  http://www.debian.org/ |
>  `. `'                          |
>    `-             -><-          |
>
> --ZPt4rx8FFjLCG7dd
> Content-Type: application/pgp-signature; name="signature.asc"
> Content-Description: Digital signature
> Content-Disposition: inline
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (GNU/Linux)
>
> iD8DBQFBL1gylpK98RSteX8RAlunAJ0QnsswEucLZwG2suMehv2DEFAtxACfR4pz
> /DleiMYvN9dBX9soTeBN6lA=
> =P2bW
> -----END PGP SIGNATURE-----
>
> --ZPt4rx8FFjLCG7dd--
>
>
>
> --===============1048006711==
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
>
> _______________________________________________
> Gnu-arch-users mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/gnu-arch-users
>
> GNU arch home page:
> http://savannah.gnu.org/projects/gnu-arch/
> --===============1048006711==--
>
>


-- 
James Blackwell          Try something fun: For the next 24 hours, give
Smile more!              each person you meet a compliment!

GnuPG (ID 06357400) AAE4 8C76 58DA 5902 761D  247A 8A55 DA73 0635 7400




reply via email to

[Prev in Thread] Current Thread [Next in Thread]