1
2
3
4
5
6
7
8
9
import { Diamond_Press } from "https://esm.town/v/ralfw/Diamond_Press";
import { Diamond_Create } from "https://esm.town/v/ralfw/Diamond_Create";
export function Diamond_Produce(size: number): string {
if (size <= 1)
return "*";
const layers = Diamond_Create(size);
return Diamond_Press(layers);
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023