CoCoA:Tagged

From ApCoCoAWiki

Tagged

tag an object for pretty printing

Description

This first function returns the object E, tagged with the string S.

Tagging is used for pretty printing of objects. See the reference

listed below.

Example

  L := [1,2,3];
  M := Tagged(L,<quotes>MyTag</quotes>);
  Type(L);
LIST
-------------------------------
  Type(M);
TAGGED(<quotes>MyTag</quotes>)
-------------------------------
  Type(Untagged(M));
LIST
-------------------------------

Syntax

Tagged(E:OBJECT,S:STRING):TAGGED(S)

Tagged Printing

Tag

Untagged

   <type>io</type>
   <type>printing</type>
   <type>tags</type>