-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathemits.fs
More file actions
35 lines (28 loc) · 881 Bytes
/
emits.fs
File metadata and controls
35 lines (28 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
\ galope/emits.fs
\ This file is part of Galope
\ http://programandala.net/en.program.galope.html
\ Author: Marcos Cruz (programandala.net), 2013, 2017, 2018.
\ ==============================================================
: emits ( c n -- ) 0 max 0 ?do dup emit loop drop ;
\ doc{
\
\ emits ( c n -- )
\
\ If _n_ is greater than zero, display the character _c_ _n_ times.
\
\ See: `ruler`, `xemits`.
\
\ }doc
\ ==============================================================
\ Change log
\ 2013-09-02 Written.
\
\ 2017-08-17: Update change log layout. Update header. Update source
\ style.
\
\ 2017-08-19: Improve the code after the standard `spaces`: do nothing
\ if _n_ is negative. This is the code used also by Solo Forth
\ (http://programandala.net/en.program.solo_forth.html). Update sorce
\ style. Document.
\
\ 2018-07-27: Update documentation.