vendredi 11 novembre 2022

How to call an object that acts like an enter-only-once gate?

How would you call a stateful function/object x() -> bool with the following behavior: on the first call it returns TRUE, on all consecutive calls it returns FALSE. Maybe there is a pattern name already for such functionality?

Aucun commentaire:

Enregistrer un commentaire