Skip to content

Commit de3bdce

Browse files
camelidJoshua Nelson
authored andcommitted
Tweak wording around provider purity
1 parent 64c4632 commit de3bdce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/queries/query-evaluation-model-in-detail.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ corresponding result. However, we have to apply some restrictions in order for
3838
this to be sound:
3939

4040
- The key and result must be immutable values.
41-
- The provider function must be a pure function, that is, for the same key it
42-
must always yield the same result.
41+
- The provider function must be a pure function in the sense that for the same
42+
key it must always yield the same result.
4343
- The only parameters a provider function takes are the key and a reference to
44-
the "query context" (which provides access to rest of the "database").
44+
the "query context" (which provides access to the rest of the "database").
4545

4646
The database is built up lazily by invoking queries. The query providers will
4747
invoke other queries, for which the result is either already cached or computed

0 commit comments

Comments
 (0)