Skip to content

Add meetup exercise#134

Merged
keiravillekode merged 2 commits intoexercism:mainfrom
keiravillekode:meetup
Feb 15, 2026
Merged

Add meetup exercise#134
keiravillekode merged 2 commits intoexercism:mainfrom
keiravillekode:meetup

Conversation

@keiravillekode
Copy link
Contributor

No description provided.

(year % 4 == 0) && ((year % 100 != 0) || (year % 400 == 0))

def daysInMonth (month : Month) (year : Nat) : Nat :=
match month.val with
Copy link
Contributor

@oxe-i oxe-i Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you match on month using, e.g., ⟨1, _⟩, you don't need the panic clause at the end. The compiler knows that the match is total from the property of Month.

@keiravillekode keiravillekode merged commit a894252 into exercism:main Feb 15, 2026
4 checks passed
@keiravillekode keiravillekode deleted the meetup branch February 15, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants