Today’s goal is to parse URLs like http://mywebsite.org/customers/:cid/orders/:oid so that we can determine it’s a customer’s order request and extract the order #oid and customer #cid from it. We’ll try and do that in an elegant way, using pattern matching and variable binding. The idea The basic idea to solve this problem is to split the URL into path components, then use a switch statement and