Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

View file

@ -0,0 +1,8 @@
csort =: monad define
min =. <./y
cnt =. 0 $~ 1+(>./y)-min
for_a. y do.
cnt =. cnt >:@{`[`]}~ a-min
end.
cnt # min+i.#cnt
)

View file

@ -0,0 +1 @@
csort=: (+/@(=/) # ]) >./ (] + 1 i.@+ -) <./

View file

@ -0,0 +1,5 @@
] a =. _3 + 20 ?@$ 10
_2 _2 6 _1 1 6 _1 4 4 1 4 4 5 _3 5 3 0 _1 3 4
csort a
_3 _2 _2 _1 _1 _1 0 1 1 3 3 4 4 4 4 4 5 5 6 6

View file

@ -0,0 +1,3 @@
csrt=:2 :0
(m+i.n-m) (+/@(=/)~ # [) ]
)

View file

@ -0,0 +1,3 @@
csrt=:2 :0
(+/@(=/) # ])&(m+i.n-m)
)

View file

@ -0,0 +1,2 @@
(_3 csrt 17) a
_3 _2 _2 _1 _1 _1 0 1 1 3 3 4 4 4 4 4 5 5 6 6