Baklava in Gerbil

Published on 01 January 2025 (Updated: 01 January 2025)

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

Current Solution

(import :std/iter)
(import :std/misc/func)

(export main)

(def (string-repeat n str)
    (string-join (repeat str n) "")
)

(def (main . args)
  (for (i (in-range -10 11))
    (def num-spaces (abs i))
    (def num-stars (- 21 (* 2 num-spaces)))
    (displayln (string-repeat num-spaces " ") (string-repeat num-stars "*"))
  )
)

Baklava in Gerbil 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.