Logtalk built-in predicate: current_category/1

contents > reference manual > built-in predicates

## `current_category/1`

#### Description

>     current_category(Category)

> Enumerates, by backtracking, all currently defined categories. All categories are found, either static, dynamic, or built-in.

#### Template and modes

>     current_category(?category_identifier)

#### Errors

> Category is neither a variable nor a valid category identifier:
>   `type_error(category_identifier, Category)`

#### Examples

>     | ?- current_category(monitoring).

previous | glossary | next
Copyright © Paulo Moura — Logtalk.org