Sobes.tech
Junior — Senior

Implement a function using closure

livecode

Task condition

Write a function that, through closure, saves a reference to a variable from an external context and allows retrieving its value at any later moment.

// TODO: implement closure, similar to generator or other functions above