%% From http://twan.home.fmf.nl/blog/haskell/Nonograms.details %% The lambda picture %% %% fzntini: 3.5 seconds. %% fz: ?? %% lazy: 1 sec rows = 12; row_rule_len = 3; row_rules = array2d(1..rows, 1..row_rule_len, [0,0,2, 0,1,2, 0,1,1, 0,0,2, 0,0,1, 0,0,3, 0,0,3, 0,2,2, 0,2,1, 2,2,1, 0,2,3, 0,2,2 ]); cols = 10; col_rule_len = 2; col_rules = array2d(1..cols, 1..col_rule_len, [2,1, 1,3, 2,4, 3,4, 0,4, 0,3, 0,3, 0,3, 0,2, 0,2 ]);