January 2020
Intermediate to advanced
532 pages
13h 31m
English
In this section, we'll introduce a sample use case related to credit approval. Suppose that you are developing a system that has the ability to open a new credit card account for a customer upon a successful background check. You may create a Julia module that has the following structure:
module CreditApproval# primary function to open an accountfunction open_account(first_name, last_name, email) end# supportive functions function check_background(first_name, last_name) endfunction create_account(first_name, last_name, email) endfunction notify_downstream(account_number) endend
Now, let's implement each of the functions. We'll start with the check_background function, which just logs the event and ...
Read now
Unlock full access