The Unlambda Programming Language

2001-02-20 Thread Juanma Barranquero

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 19 Feb 2001 13:17:56 -0600, "David L. Nicol"
[EMAIL PROTECTED] wrote:

 "currying" used in a fascinating context: an experimental 
 language in which
 
 http://www.eleves.ens.fr:8080/home/madore/programs/unlambda/#tut

In that vein, perhaps (the collective) you wants to visit the
Esoteric Languages' page of Cat's Eye Technologies:

http://www.catseye.mb.ca/

   /L/e/k/t/u

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for non-commercial use http://www.pgp.com

iQA/AwUBOpJ9Cv4C0a0jUw5YEQJFwgCfXc6USTxBcJHbf0vSagVu9ofNVL0AnjN/
TwaFtv8MxYM+mCFp87PlKChe
=0iQ+
-END PGP SIGNATURE-




The Unlambda Programming Language

2001-02-19 Thread David L. Nicol




"currying" used in a fascinating context: an experimental 
language in which

http://www.eleves.ens.fr:8080/home/madore/programs/unlambda/#tut

everything is a unary function.

Multiple-argument functions are defined in such a way that
the function takes the first argument and returns a function
that takes the second.




Re: The Unlambda Programming Language

2001-02-19 Thread schwern

On Mon, Feb 19, 2001 at 01:17:56PM -0600, David L. Nicol wrote:
 "currying" used in a fascinating context: an experimental 
 language in which
 
 http://www.eleves.ens.fr:8080/home/madore/programs/unlambda/#tut

Oh, nooooOOO!!  Those with small children, heart conditions or a
weak stomach, please look away.

The following Unlambda program calculates and prints the Fibonacci
numbers (as lines of asterisks)

```s``s``sii``s`kk`ki`ki``s``s`ks``s``s`ks``s`kk`ks``s``s`ks``s``s`ks`
`s`kk`ks``s``s`ks``s``s`ks``s`kk`ks``s``s`ks``s``s`ks``s`kk`ks``s``s`k
s``s`kk`kk``s`kk`kr``s``s`ks``s``s`ks``s`kk`ks``s``s`ks``s``s`ks``s`kk
`ks``s``s`ks``s`kk`kk`ki``s``s`ks``s`kk`kk``s`kk`k.*``s``s`ks``s`kk`kk
``s`kki``s``s`ks``s`kk`kk``s`kki``s`kk`ki``s``s`ks``s``s`ks``s`kk`ks``
s``s`ks``s``s`ks``s`kk`ks``s``s`ks``s`kk`kk``s`kk`k``s``s`ks``s``s`ks`
`s`kk`ks``s``s`ks``s``s`ks``s`kk`ks``s``s`ks``s`kk`kk``s`kk`ks``s``s`k
s``s``s`ks``s`kk`ks``s``s`ks``s``s`ks``s`kk`ks``s``s`ks``s`kk`kk``s`kk
`ks``s``s`ks``s``s`ks``s`kk`ks``s``s`ks``s`kk`kk``s`kk`kk``s``s`ks``s`
kk`kk``s`kki``s``s`ks``s``s`ks``s`kk`ks``s``s`ks``s`kk`kk``s`kk`kk``s`
kk`ki``s``s`ks``s``s`ks``s`kk`ks``s``s`ks``s``s`ks``s`kk`ks``s``s`ks``
s`kk`kk``s`kk`ks``s``s`ks``s``s`ks``s`kk`ks``s``s`ks``s``s`ks``s`kk`ks
``s``s`ks``s`kk`kk``s`kk`ks``s``s`ks``s``s`ks``s`kk`ks``s``s`ks``s`kk`
kk``s`kk`kk``s``s`ks``s`kk`kk`ki``s``s`ks``s``s`ks``s`kk`ks``s``s`ks``
s`kk`kk``s`kk`kk``s`kk`ki``s``s`ks``s`kk`kk``s`kk`ki``s``s`ks``s`kk`kk
`ki``s`kk`ki

(Line breaks, as all whitespace in fact, are optional and arbitrary.) 

;)  (I know, I know.  Its the principle of the thing that counts)

-- 
Michael G Schwern   [EMAIL PROTECTED]   http://www.pobox.com/~schwern/
Perl6 Quality Assurance [EMAIL PROTECTED]   Kwalitee Is Job One