Skip to content

Instantly share code, notes, and snippets.

@jj-jabb
jj-jabb / lens.js
Created September 14, 2013 14:05
JavaScript immutable List and Lens implementation
var List = (function() {
function List(src) {
this._list = null
this._length = 0
if(src instanceof List) {
this._list = src._list
this._length = src._length
}
}