Skip to content

Instantly share code, notes, and snippets.

@thinca
Last active May 31, 2017 05:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinca/fa6ddc5a0b4a1f3b80dc to your computer and use it in GitHub Desktop.
Save thinca/fa6ddc5a0b4a1f3b80dc to your computer and use it in GitHub Desktop.
let s:Object = {}
function! s:Object.x() abort
let dt = filter(self, '1')
endfunction
let s:Object['+'] = s:Object.x
function! s:new() abort
return copy(s:Object)
endfunction
function! s:load() abort
call map(range(1, 2), 's:new().x()')
endfunction
call s:load()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment