File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -64,15 +64,15 @@ let getCreditLimit customer =
64
64
// Now you try #3
65
65
type Customer = { Balance : int ; Name : string }
66
66
67
- let handleCustomer customers =
67
+ let handleCustomers customers =
68
68
match customers with
69
69
| [] -> failwith " No customers supplied!"
70
70
| [ customer ] -> printfn " Single customer, name is %s " customer.Name
71
71
| [ first; second ] -> printfn " Two customers, balance = %d " ( first.Balance + second.Balance)
72
72
| customers -> printfn " Customers supplied: %d " customers.Length
73
73
74
- handleCustomer [] // throws exception
75
- handleCustomer [ { Balance = 10 ; Name = " Joe" } ] // prints name
74
+ handleCustomers [] // throws exception
75
+ handleCustomers [ { Balance = 10 ; Name = " Joe" } ] // prints name
76
76
77
77
// Listing 20.9
78
78
let getStatus customer =
You can’t perform that action at this time.
0 commit comments