• benoît chesneau's avatar
    distinct add from add_with · c1cea592
    benoît chesneau authored
    we were trying to be too smart in checking if the value given was a
    function or not in `lru:add/3` and `lru:contains_or_add/3` functions.
    Instead we now have distinct `lru:add_with/3` and `lru:contains_or_add_with/3` to
    pass a function.
    
    fix #2
    c1cea592
lru.erl 18.8 KB