cheatsheet/elm.js
function create(item, h)
{
	if (h === 0)
	{
		return {
			ctor: '_Array',
			height: 0,
			table: [item]
		};
	}
	return {
		ctor: '_Array',
		height: h,
		table: [create(item, h - 1)],
		lengths: [1]
	};
}
function create(item, h)
{
	if (h === 0)
	{
		return {
			ctor: '_Array',
			height: 0,
			table: [item]
		};
	}
	return {
		ctor: '_Array',
		height: h,
		table: [create(item, h - 1)],
		lengths: [1]
	};
}
function create ( item , h ) { if ( h === 0 ) { return { ctor : '_Array' , height : 0 , table : [ item ] } ; } return { ctor : '_Array' , height : h , table : [ create ( item , h - 1 ) ] , lengths : [ 1 ] } ; }
Recursively creates a tree with a given height containing only the given item.
Recursively creates a tree with a given height containing only the given item .