Rhombus on Rosetta Code

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 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!

4 Likes

I added an example for the Guessing Game program. Please let me know if you have any suggestions to improve it.

1 Like

I think a better iterative factorial could be

fun factorial(n):
  for values(a=1) (n in 1..=n):
    a * n
2 Likes

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