Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def foo() = {
- var b = 11
- def goo() = {
- b = b + 23
- b
- }
- goo
- } //> foo: ()Int
- val a = foo() //> a : Int = 34
- a //> res0: Int = 34
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement