Skip to content

Commit 8291f49

Browse files
authored
Add Baklava in Fennel (#4192)
1 parent f824efe commit 8291f49

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

archive/f/fennel/baklava.fnl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
(for [i -10 10]
2+
(let [
3+
num-spaces (math.abs i)
4+
num-stars (- 21 (* 2 num-spaces))
5+
]
6+
(print (.. (string.rep " " num-spaces) (string.rep "*" num-stars)))
7+
)
8+
)

0 commit comments

Comments
 (0)