Question: Write an Erlang function named process that takes no parameters. The function should wait to receive a message, which will be a single Erlang item.
Write an Erlang function named process that takes no parameters. The function should wait to receive a message, which will be a single Erlang item. If the item is an integer, print out Double your number is: and then double the number. If it is a list, print out The tail of your list is: and then the tail of the list. If it is anything else, print I dont know what to do.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
