package Ġorg . fire zen k . golden ble et le . features . common Ċ Ċ class ĠStore Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġstates : ĠMutable List < State > Ġ= Ġmutable ListOf () ĊĊĠĠĠ Ġval Ġfrozen States : ĠList < State > ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġstates . toList () ĊĊĠĠĠ Ġinternal Ġfun Ġadd ( function : Ġ() Ġ-> ĠState ) Ġ{ ĊĠĠĠĠĠĠĠ Ġstates . add ( function ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġinternal Ġfun Ġclear () Ġ= Ġstates . clear () ĊĊĠĠĠ Ġinline Ġfun Ġ< re ified ĠS > Ġprovide Last (): ĠS ? Ġ= Ġfrozen States . find Last Ġ{ Ġit Ġis ĠS Ġ} Ġas ĠS ? Ċ }