Beginners :: Typed constants can be compared to initialized variables - variables whose values are defined on entry to their block. Such a variable is initialized only when the program starts running. After that, the value of a typed constant persists between successive calls to their procedures.
Read the full article to learn implement persistent values between function calls.
Related:

Wouldn´t it be cleaner to use class variables?