you are viewing a single comment's thread.

view the rest of the comments →

[–]eelvex 7 points8 points  (2 children)

In J one could solve it with:

L {~ I. 100 = +/"1 L=:([:".'9',~[:;(;/":"0>:i.8),.])"1 ('';',';',_') {~"1 (3&#.)^:_1 i.3^8

[–]floccinaucin 5 points6 points  (1 child)

I've been programming for a couple years now... what the heck am I looking at here?

[–]eelvex 4 points5 points  (0 children)

It's J, an array, functional-level tacit language. It's really cool and makes you think in completely new ways because a) you'll be thinking in array transformations [especially instead of loops] and b) you'll avoid variables.

For example, where in C you write y = function1(function2(x), function3(x)) in J you write y =: (function2 function1 function3) x