Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
7
Task/Gray-code/K/gray-code-6.k
Normal file
7
Task/Gray-code/K/gray-code-6.k
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
gray:{x[0],xor':x}
|
||||
g2b:xor\
|
||||
/ using allcomb instead of 2_vs'!32 for nicer presentation
|
||||
allcomb:{+(x#y)_vs!_ y^x}
|
||||
a:(+allcomb . 5 2)
|
||||
`0:,/{n:2_sv x;gg:gray x;gb:g2b gg;n2:2_sv gb;
|
||||
,/$((2$n)," : ",$x," -> ",$gg," -> ",$gb," : ",(2$n2),"\n") }'a
|
||||
Loading…
Add table
Add a link
Reference in a new issue