about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-12-10 22:38:09 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-12-10 22:38:09 +0100
commit8c182a892186f7ffe832767b8e39564e8133a45c (patch)
tree98479c7737f4a4ac9a1b20cb8e34fef07d9ff8aa
parenteef4018cca804ae67ea989970ff69ba90e9e1f05 (diff)
downloadadventofcode2016-8c182a892186f7ffe832767b8e39564e8133a45c.tar.gz
adventofcode2016-8c182a892186f7ffe832767b8e39564e8133a45c.tar.xz
adventofcode2016-8c182a892186f7ffe832767b8e39564e8133a45c.zip
day08: tweaks
-rw-r--r--day08.k6
1 files changed, 4 insertions, 2 deletions
diff --git a/day08.k b/day08.k
index ba3f823..ac37f81 100644
--- a/day08.k
+++ b/day08.k
@@ -1,9 +1,11 @@
 / use KDB+ 3.3 2016.03.14
 
 f: 6 50#0
-r:.q.rotate
+r: .q.rotate
 
-{$["rect"~*w:" "\:x;.[`f;(!.:)'|"x"\:*|w;:;1]; "row"~w[1];f[n]::r[-.*|w;f[n:.*|"="\:w 2]]; "column"~w[1]:f[;n]::r[-.*|w;f[;n:.*|"="\:w 2]];]}'0:`day08;
+{$["rect"~*w:" "\:x;.[`f;(!.:)'|"x"\:*|w;:;1]
+   "row"~w[1];f[n]::r[-.*|w;f[n:.*|"="\:w 2]]
+              f[;n]::r[-.*|w;f[;n:.*|"="\:w 2]]]}'0:`day08;
 
 +//f		/ 106
 -1'" #"f;	/ CFLELOYFCS