Last active
May 31, 2017 05:22
-
-
Save thinca/fa6ddc5a0b4a1f3b80dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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