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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!