Arc Forumnew | comments | leaders | submitlogin
A FizzBuzz solution in Arc (rosettacode.org)
2 points by svetlyak40wt 3917 days ago | 7 comments


1 point by akkartik 3917 days ago | link

I love rosetta code. I spent a few weeks adding samples for my arc-like dialect: http://rosettacode.org/wiki/Category:Wart. I'd meant to add samples for arc as well, but never got around to it. Glad to see someone else taking charge!

-----

2 points by heated 3912 days ago | link

Hey man I fixed up your code to use case and gcd instead for brevity. I hope you don't mind. :)

-----

1 point by akkartik 3912 days ago | link

Interesting, I wasn't aware of the gcd trick. I had something to learn even in fizzbuzz, who knew?!

But hmm, I don't see gcd defined anywhere in arc3.1 or anarki. Where are you seeing it?

-----

2 points by heated 3911 days ago | link

Whoops. Seems to be my implementation only. (and Racket)

-----

2 points by akkartik 3911 days ago | link

Cool; added. https://github.com/arclanguage/anarki/commit/e893c94e5d

-----

1 point by svetlyak40wt 3910 days ago | link

That is not fair in this case. Please, write example code in terms of Arc3.1 primitives.

-----

2 points by heated 3905 days ago | link

Ok

-----