# Rhombus on Rosetta Code

**URL:** <https://racket.discourse.group/t/rhombus-on-rosetta-code/3787>\
**Category:** Show & Tell\
**Tags:** rhombus\
**Created:** [June 11, 2025, 6:06am UTC](https://racket.discourse.group/t/rhombus-on-rosetta-code/3787 "2025-06-11T06:06:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![avrame](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/avrame/32/2340_2.png) [@avrame](https://racket.discourse.group/u/avrame)\
**Post date:** [June 11, 2025, 6:06am UTC](https://racket.discourse.group/t/rhombus-on-rosetta-code/3787/1 "2025-06-11T06:06:16Z")

</div>

In order to learn Rhombus, I’ve been creating small programs and figured I might as well add them to Rosetta Code. So I added a [Rhombus page](https://rosettacode.org/wiki/Category:Rhombus) with a few simple examples. I plan to add more when I have the time, but I thought some of you in this forum might want to contribute too. Hopefully it helps spread the word about Rhombus!

---

<div class="post-metadata">

**Author:** ![avrame](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/avrame/32/2340_2.png) [@avrame](https://racket.discourse.group/u/avrame)\
**Post date:** [June 11, 2025, 8:31pm UTC](https://racket.discourse.group/t/rhombus-on-rosetta-code/3787/2 "2025-06-11T20:31:46Z")

</div>

I added an example for the [Guessing Game program](https://rosettacode.org/wiki/Guess_the_number/With_feedback#Rhombus). Please let me know if you have any suggestions to improve it.

---

<div class="post-metadata">

**Author:** ![SamPhillips](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/samphillips/32/15_2.png) [@SamPhillips](https://racket.discourse.group/u/SamPhillips)\
**Post date:** [June 16, 2025, 10:32pm UTC](https://racket.discourse.group/t/rhombus-on-rosetta-code/3787/3 "2025-06-16T22:32:57Z")

</div>

I think a better iterative factorial could be

```rhombus
fun factorial(n):
  for values(a=1) (n in 1..=n):
    a * n

```

---

<div class="post-metadata">

**Author:** ![avrame](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/avrame/32/2340_2.png) [@avrame](https://racket.discourse.group/u/avrame)\
**Post date:** [June 17, 2025, 7:58pm UTC](https://racket.discourse.group/t/rhombus-on-rosetta-code/3787/4 "2025-06-17T19:58:20Z")

</div>

Thanks - updated! I didn't know you could use the `values()` function like that. Any recommended changes to the other examples?
