Baklava in Pyret

Published on 16 October 2023 (Updated: 16 October 2023)

Welcome to the Baklava in Pyret page! Here, you'll find the source code for this program as well as a description of how the program works.

Current Solution

fun print-row(n :: Number):
  spaces = string-repeat(" ", 10 - n)
  stars = string-repeat("*", (n * 2) + 1)
  print(spaces + stars + "\n")
end
  
range-by(0, 11, 1).each(print-row) 
range-by(9, -1, -1).each(print-row)

Baklava in Pyret was written by:

If you see anything you'd like to change or update, please consider contributing.

How to Implement the Solution

No 'How to Implement the Solution' section available. Please consider contributing.

How to Run the Solution

No 'How to Run the Solution' section available. Please consider contributing.