Updated regularity (markdown)

Simon Brooke 2019-01-23 19:04:44 +00:00
parent 57bb0e5432
commit b34348d12e

@ -6,7 +6,7 @@ But, for example, if we have a regularity whose members represent companies, and
``` ```
(defun payroll (company) (defun payroll (company)
(reduce + (map :salary (:employees company)))) (reduce + (map do-something-to-get-salary (:employees company))))
``` ```
which would be accessed which would be accessed
@ -16,3 +16,5 @@ which would be accessed
(acme . companies:acme-widgets)) (acme . companies:acme-widgets))
(companies:methods:payroll acme)) (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`.