Package jason.stdlib

Class namespace

java.lang.Object
All Implemented Interfaces:
InternalAction, java.io.Serializable

@Manual(literal=".namespace(argument)",
        hint="checks whether the argument is a namespace",
        argsHint="the term to be checked",
        argsType="term",
        examples={".namespace(family), assuming the BB is {a(10),family::brother(bob),b(f,1)}: true",".namespace(any_other), assuming the BB is {a(10),family::brother(bob),b(f,1)}: false"},
        seeAlso={"jason.stdlib.findall","jason.stdlib.setof","jason.stdlib.count"})
public class namespace
extends DefaultInternalAction

Internal action: .namespace.

Description: checks whether the argument is a namespace.

Parameter:

  • + arg[0] (any term): the term to be checked.

Examples assuming the BB is currently {a(10),family::brother(bob),b(f,1)}:

  • .namespace(family): true.
  • .namespace(any_other): false.
See Also:
findall, setof, count, Serialized Form