projog

3.82. tab(X) - writes X number of spaces to the output stream.

Examples

?- write(start), tab(1), write(finish).
start finish
yes

?- write(start), tab(2), write(finish).
start  finish
yes

?- write(start), tab(3), write(finish).
start   finish
yes

?- write(start), tab(32), write(finish).
start                                finish
yes

?- write(start), tab(3+4), write(finish).
start       finish
yes

?- write(start), tab(0), write(finish).
startfinish
yes

?- write(start), tab(-1), write(finish).
startfinish
yes

?- write(start), tab(3.5), write(finish).
start   finish
yes