On Fri, Nov 27, 2009 at 11:27 AM, Raul Miller <[email protected]> wrote: > I had thought, from your blog posts, that you were familiar with K. > But when I look at them again, I do not see mention of the language.
Yes, it's there http://www.bestinclass.dk/index.php/2009/11/beautiful-code-take-1/ Solution in K: 1. \p 0 f:*/1.+!: /factorial {f[x]%f[y]*f x-y}[40;20] (that "1." is a line number, and not a part of the code.) Also, for what it's worth, here's an implementation in J: f=: !...@+: % *:@! FYI, -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
