-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.easy
26 lines (21 loc) · 860 Bytes
/
utils.easy
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
getListIR': [
list:getIR:index:;;;
", " index list @ getIR call &
list getIR index 1 + getListIR' &
] func;
getListIR': [0 =] [
list:getIR:index:;;;
index list @ getIR call
list getIR index 1 + getListIR' &
] pfunc;
getListIR': [swap drop swap fieldCount =] [drop drop drop ""] pfunc;
getListIR: [0 getListIR'] func;
compBuiltinList': [drop drop drop FALSE] func;
compBuiltinList': [a:b:index:;;; index a @ index b @ =] [1 + compBuiltinList'] pfunc;
compBuiltinList': [index:; fieldCount index =] [drop drop drop TRUE] pfunc;
compBuiltinList: [drop drop FALSE] func;
compBuiltinList: [a:b:;; a fieldCount b fieldCount =] [0 compBuiltinList'] pfunc;
checkInList': [1 + checkInList'] func;
checkInList': [swap @ is] [drop drop drop TRUE] pfunc;
checkInList': [swap fieldCount =] [drop drop drop FALSE] pfunc;
checkInList: [0 checkInList'] func;