1.8 KiB
1.8 KiB
Hints
General
- Read about using
within the official Getting Started guide. - Review the functions available in the
NaiveDateTimemodule, theDatemodule, and theTimemodule.
1. Get into the building
- Match the
:oktuple returned byenter_building/1inwithwith<-. - In the
dopart ofwith, return an:oktuple with the value you just matched. - Since you don't need to modify the error, you don't need an
elseblock.
2. Go to the information desk and find which counter you should go to
- Match the
:oktuple returned byfind_counter_information/1inwithwith<-. - Apply the anonymous function your just matched and match the result with
<-. - In the
dopart ofwith, return an:oktuple with the counter you obtained. - Add an
elseblock that will expect a:coffee_breaktuple and return a:retrytuple with aNaiveDateTime. - A minute has
60seconds. - There is a built-in function that adds a given number of seconds to a
NaiveDateTimestruct. - Other errors should be returned as they are.
3. Go to the counter and get your form stamped
- Match the
:oktuple returned bystamp_form/3inwithwith<-. - In the
dopart ofwith, return an:oktuple with the checksum.
4. Receive your new passport
- In the
dopart ofwith, useget_new_passport_number/3and return the result in an:oktuple.