Skip to content

Commit

Permalink
last tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaferranti committed Feb 29, 2024
1 parent b6127c8 commit 3ba0974
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exercises/practice/roman-numerals/.meta/reference.chpl
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
module RomanNumerals {


private proc helper(n: int, symbols: 3 * string) {
var (unit, five, next) = symbols;
private proc helper(n : int, (unit, five, next) : 3 * string) {
if n == 9 then return unit + next;
else if n >= 5 then return five + (unit * (n - 5));
else if n == 4 then return unit + five;
Expand Down

0 comments on commit 3ba0974

Please sign in to comment.