Created
December 17, 2017 18:29
-
-
Save thinca/330b3ebc33bd0212a8d9f24de3c39260 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
function! X() abort | |
let x = 10 | |
let scope = l: | |
let F = { -> extend(scope, {'x': 200}) } | |
call F() | |
echo x | |
endfunction | |
call X() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lambda 式から、外側の関数のローカル変数を書き換える黒魔術