Is there a shorthand form to get variables' values with numbered scopes?
- by guillermooo
Is there any shorter way of doing this?
& { $a = 1 ; & { $a = 2 ; & { get-variable -name a -scope 2 } } }
... like, for instance, this?:
& { $a = 1 ; & { $a = 2 ; & { $2:a } } }