Package jason.stdlib

Class term2string

All Implemented Interfaces:
InternalAction, 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: