Rebol Programming/entab

From Wikibooks, open books for an open world
Jump to navigation Jump to search

USAGE:[edit | edit source]

ENTAB string /size number 

DESCRIPTION:[edit | edit source]

Converts spaces in a string to tabs. (tab size 4)

ENTAB is a native value.

ARGUMENTS[edit | edit source]

  • string -- (Type: any-string)

REFINEMENTS[edit | edit source]

  • /size -- Specifies the number of spaces per tab.
    • number -- (Type: integer)

SOURCE CODE[edit | edit source]

entab: native[
    "Converts spaces in a string to tabs. (tab size 4)" 
    string [any-string!] 
    /size "Specifies the number of spaces per tab." 
    number [integer!]
]