Legend quest ยท reward 50 XP

{ x in x+1 } is a closure.

๐Ÿฅš

Egg hatching ยท 0%

Finish every step to hatch your monster!

Step 1 / 6

๐Ÿ‘พ

closure

{ x in x+1 } is a closure. ๐Ÿ” Why it matters: Games use this to remember your score, your lives and your level.

let inc: (Int)->Int = { x in x+1 }