nb_setval/2

"nb_setval(+ Name,+ Value" )

Associates a copy of _Value_ created with @ref duplicate_term_50 @"duplicate_term/2" with the atom _Name_. Note that this can be used to set an initial value other than[]prior to backtrackable assignment.