Oct. 16th, 2014

juan_gandhi: (VP)
сейчас по радио слушал пока ехал

llegaste tú, y se fueron los fríos - ты пришла, и холода прошли.
juan_gandhi: (VP)
Looking for a way to have and pass around named tuples, I'm kind of coming to a conclusion that this belongs to dependent types, roughly speaking. Or? Of course I'm only interested in Scala.
juan_gandhi: (VP)
window.fold = function(list, zero, op) {
    var r = zero;
    for (var i = 0; i < list.length; i++) {
        r = op(r, list[i])
    }
    return r;
};

window.flatten = function(listOfLists) { 
    return fold(listOfLists, [], function(s1, s2) { return s1.concat(s2)})
};


Basically, I do map/reduce.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

August 2025

S M T W T F S
      12
3456789
10 11 12 13141516
171819 20212223
2425 2627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 28th, 2025 12:15 pm
Powered by Dreamwidth Studios