Package jason.stdlib

Class term2string

java.lang.Object
jason.asSemantics.DefaultInternalAction
jason.stdlib.term2string
All Implemented Interfaces:
InternalAction, java.io.Serializable

@Manual(literal=".term2string(term,string)",
        hint="converts the term into a string and vice-versa",
        argsHint={"the term","the string"},
        argsType={"term","string"},
        examples={".term2string(b,\"b\"): true",".term2string(b,X): unifies X with \"b\"",".term2string(X,\"b\"): unifies X with b",".term2string(X,\"10\"): unifies X with 10 (a number term)"},
        seeAlso={"jason.stdlib.concat","jason.stdlib.delete","jason.stdlib.length","jason.stdlib.reverse"})
public class term2string
extends DefaultInternalAction

Internal action: .term2string(T,S).

Description: converts the term T into a string S and vice-versa.

Parameters:

  • -/+ T (any term).
  • -/+ S (a string).

Examples:

  • .term2string(b,"b"): true.
  • .term2string(b,X): unifies X with "b".
  • .term2string(X,"b"): unifies X with b.
  • .term2string(X,"10"): unifies X with 10 (a number term).
See Also:
concat, delete, length, reverse, Serialized Form
  • Field Details

  • Constructor Details

    • term2string

      public term2string()
  • Method Details