Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/History-variables/J/history-variables-1.j
Normal file
12
Task/History-variables/J/history-variables-1.j
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
varref_hist_=:'VAR','_hist_',~]
|
||||
set_hist_=:4 :0
|
||||
V=.varref x
|
||||
if.0>nc<V do.(<V)=:''end.
|
||||
(<V)=.V~,<y
|
||||
y
|
||||
)
|
||||
getall_hist_=:3 :0
|
||||
(varref y)~
|
||||
)
|
||||
length_hist_=: #@getall
|
||||
get_hist_=: _1 {:: getall
|
||||
14
Task/History-variables/J/history-variables-2.j
Normal file
14
Task/History-variables/J/history-variables-2.j
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
'x' set_hist_ 9
|
||||
9
|
||||
'x' set_hist_ 10
|
||||
10
|
||||
'x' set_hist_ 11
|
||||
11
|
||||
get_hist_ 'x'
|
||||
11
|
||||
length_hist_ 'x'
|
||||
3
|
||||
getall_hist_ 'x'
|
||||
┌─┬──┬──┐
|
||||
│9│10│11│
|
||||
└─┴──┴──┘
|
||||
Loading…
Add table
Add a link
Reference in a new issue