Erlang File -module(exam). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). Part A Implement a function called min which takes a tuple of two numeric values and returns the lower value...


Erlang File


-module(exam).


-compile(export_all).


-include_lib("eunit/include/eunit.hrl").



Part A
Implement a function called min which takes a tuple of two numeric values and returns the lower value of the two.
Implementation notes:
• If needed, use Erlang function guards
• Do NOT use the if or case structures
Sample calls:
> exam:min({3, 4}).
3
> exam:min({4, 3}).
3



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here