Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -module(dates).
- -author("unai").
- %% API
- -export([classify_day/1]).
- classify_day({saturday}) -> classify_day({weekend});
- classify_day({sunday}) -> classify_day({weekend});
- classify_day({weekend}) -> weekend;
- classify_day({_}) -> weekday.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement