chickadee » simple-cells » cell

cell var #!rest testsprocedure

Constructor. Creates a cell as a procedure of zero or one argument, closed over its state and initializes that state with var provided all tests succedd. Called without argument the cell returns its state, with argument, replaces the cell's state with that very argument and returns the old state, provided all tests succead.