News for hackers. Stuff that matters.
Re:Can your programming language do this? by tokipin on Wednesday July 08, 2009 @06:02PM (#694798)
for the sake of language geekdom, it would be done in J something like this:

  - +/ p * ^. p
where p is the array. you can even remove the duplication of the array with a so-called hook:

  - +/ (* ^.) p

There are no comments on this comment yet.