+/,.&.": 10 3 112 16 7
22


Dan Bron schreef:
I wrote:
usual metrics apply: novelty, brevity, velocity, and parsimony.

I'm most interested in an elegant way to rephrase sum-of-the-digits:

           +/@:,@:(#.^:_1)

Can you come up with a better way?  Example:

10 +/@:,@:(#.^:_1) 10 3 112 16 7 22

-Dan

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to