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

October 2025

S M T W T F S
    1 23 4
5 678 9 1011
12 13 1415 161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 20th, 2025 06:46 am
Powered by Dreamwidth Studios