I recently posted on Twitter some J code inspired by a math paper that came to my attention there.
Ron Jeffries expressed curiousity about the reading and writing of J. He wrote: "How does the writer know that's Munchausen? How does the reader know? ... i want to know if some other human who knows J can immediately see what it does. i sure can't" So it is that I put here the following J with a request for descriptions of the reading experience. How clear is it to you what is going on, as you look through this? Perhaps more interesting, *how* is it clear to you? 3435 = +/ ^~ 3 4 3 5 1 digits =: 10&#.^:_1 o =: @: isMunchausen =: = +/ o ^~ o digits isMunchausen 3435 1 isMunchX =: verb :'y = +/ ^~ digits y' isMunchX 3435 1 +/ isMunchX"0 i. 1e6 2 NB. paper by Daan van Berkel, "On a curious property of 3435": http://arxiv.org/abs/0911.3038v2 -- Tracy Harms ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm