Updated regularity (markdown)
parent
57bb0e5432
commit
b34348d12e
|
@ -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`.
|
Loading…
Reference in a new issue