File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -160,4 +160,5 @@ What next?
160160----------
161161
162162- Learn more about recursion in the `QL language handbook <https://help.semmle.com/QL/ql-handbook/index.html >`__.
163+ - Put your QL skills to the test and solve the :doc: `River crossing puzzle <../ql-etudes/river-crossing >`.
163164- Start using QL to analyze projects. See :doc: `Learning QL <../../index >` for a summary of the available languages and resources.
Original file line number Diff line number Diff line change @@ -227,8 +227,11 @@ that returns the resulting path.
227227 .. literalinclude :: river-crossing.ql
228228 :lines: 115-117
229229
230- For now, the path defined in the above predicate ``reachesVia `` just lists the order of cargo items to ferry.
231- You could tweak the predicates and the select clause to make the solution clearer. Here are some suggestions:
230+ The `don't-care expression <https://help.semmle.com/QL/ql-handbook/expressions.html#don-t-care-expressions >`__ (``_ ``),
231+ as the second argument to the ``reachesVia `` predicate, represents any value of ``visitedStates ``.
232+
233+ For now, the path defined in ``reachesVia `` just lists the order of cargo items to ferry.
234+ You could tweak the predicate and the select clause to make the solution clearer. Here are some suggestions:
232235
233236 - Display more information, such as the direction in which the cargo is ferried, for example
234237 ``"Goat to the left shore" ``.
You can’t perform that action at this time.
0 commit comments