At 08:14  -0700 2007/09/14, Ed Keith wrote:
I'm coming to J from a C++ background. While much of J
requires a new mind set, I think I am getting most of
it, but I'm just not getting tacit programming. I
cannot figure out anything that is not trivial.

For example I recently wrote the following verb:

base =: dyad : '((<. 1 + y ^. x) # y) #: x'

It takes a number and a base and and produces an array
of digits to represent the number in the base.

How would this be written tacitly? I'm not so much
interested in how to write this verb, but how to think
through the creation of a tacit verb.

Any assistance is appreciated,


One way (but without thinking...) -

   13 : '((<. 1 + y ^. x) # y) #: x'
[ #:~ ] #~ [: <. 1 + ^.~
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to