sitelogo
set_global/2

set the value of a global variable.

set_global(+Name, +Value)

set_global/2 sets the global variable Namei to the value Value.

Arguments

Name          atom (name of a global variable)
Value         term

Examples

set_global(fruit, [apple,banana,grapes]). Succeeds.

Standard

This predicate is not part of the ISO-Prolog Standard.

See also

current_global/1, get_global/2.


Darueber read on...
scroll to top managed with ubiCMS