Command: bytesequence (peu)
  
Syntax: 
  i = bytesequence(x)
  
Description: 
  Return 1 if x is a bytesequence else return 0.
  
Comments: 
  This serves to define the bytesequence type. You can also call
  it like an ordinary function to determine if an object is
  a bytesequence. A bytesequence is a sequence how's elements
  has a value in the range 0 to 255 (known as character strings)
  
Example 1:

       sequence s
       s = {1,2,3}
   
Example 2:

       if bytesequence(x) then
         sum = 0
         for i = 1 to length(x) do
             sum = sum + x[i]
         end for
       else
           -- x must be an atom
           sum = x 
       end if

See Also: 
  sequence, atom, integer, object type in refman.doc
  

