built-in predicate
current_category/1
ï
Descriptionï
current_category(Category)
Enumerates, by backtracking, all currently defined categories. All categories are found, either static, dynamic, or built-in.
Modes and number of proofsï
current_category(?category_identifier) - zero_or_more
Errorsï
Category
is neither a variable nor a valid category identifier:type_error(category_identifier, Category)
Examplesï
% enumerate the defined categories:
| ?- current_category(Category).
Category = core_messages ;
...