build/ludorum.js
/** The previous methods return the whole lines. Some times the game logic demands checking 
	lines of a certain length. These are sublines, and can be calculated by 
	`sublines(lines, length)`. It obviously filters lines which are shorter than length.
	*/
The previous methods return the whole lines. Some times the game logic demands checking
lines of a certain length. These are sublines, and can be calculated by
`sublines(lines, length)`. It obviously filters lines which are shorter than length.
The previous methods return the whole lines . Some times the game logic demands checking lines of a certain length . These are sublines and can be calculated by ` sublines ( lines length ) ` . It obviously filters lines which are shorter than length .
function sublines(lines, length) {
		return iterable(lines).map(function (line) {
			return Array.isArray(line) ? line : iterable(line).toArray();
		}, function (line) {
			return line.length >= length;
		}).map(function (line) {
			return Iterable.range(0, line.length - length + 1).map(function (i) {
				return line.slice(i, i + length);
			});
		}).flatten();
	}
function sublines ( lines , length ) { return iterable ( lines ) . map ( function ( line ) { return Array . isArray ( line ) ? line : iterable ( line ) . toArray ( ) ; } , function ( line ) { return line . length >= length ; } ) . map ( function ( line ) { return Iterable . range ( 0 , line . length - length + 1 ) . map ( function ( i ) { return line . slice ( i , i + length ) ; } ) ; } ) . flatten ( ) ; }
The previous methods return the whole lines.
The previous methods return the whole lines .