-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbetween.fs
More file actions
35 lines (26 loc) · 722 Bytes
/
between.fs
File metadata and controls
35 lines (26 loc) · 722 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/between.fs
\ This file is part of Galope
\ http://programandala.net/en.program.galope.html
\ This file is public domain.
\ ==============================================================
[undefined] between [if]
: between ( n low high -- f ) over - -rot - u< 0= ;
\ doc{
\
\ between ( n low high -- f )
\
\ Is _n_ between _low_ and _high_, including both of them?
\
\ }doc
[then]
\ ==============================================================
\ Change log
\ 2012-05-05: First version.
\
\ 2014-06-20: Stack comment fixed.
\
\ 2017-06-21: Rewrite. `1+ within` doesn't work over the full range.
\
\ 2017-08-17: Update change log layout. Update header.
\
\ 2017-10-24: Improve documentation.