From b34348d12eb7082df3d7ee2486d8c6991fe71853 Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Wed, 23 Jan 2019 19:04:44 +0000 Subject: [PATCH] Updated regularity (markdown) --- regularity.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/regularity.md b/regularity.md index 45470ff..287ee08 100644 --- a/regularity.md +++ b/regularity.md @@ -6,7 +6,7 @@ But, for example, if we have a regularity whose members represent companies, and ``` (defun payroll (company) - (reduce + (map :salary (:employees company)))) + (reduce + (map do-something-to-get-salary (:employees company)))) ``` which would be accessed @@ -16,3 +16,5 @@ which would be accessed (acme . companies:acme-widgets)) (companies:methods:payroll acme)) ``` + +But salary is not a property of a company, it's a property of an employee; so what is this thing called `do-something-to-get-salary`? It's a method on the regularity of employees, so in this example, is is `::shared:pool:employees:methods:salary`. \ No newline at end of file