@@ -81,10 +81,29 @@ So we are looking for a hole of type Nat and all we know is it has type Nat.
82Going back to the full term, the above is wrapped in a guess, so it means: 'a guess that is itself a hole'.
82Going back to the full term, the above is wrapped in a guess, so it means: 'a guess that is itself a hole'.
84+Since the elaborator does not have any further information it has to be given a value:
88+ %language ElabReflection
91+ testFn = %runElab (do fill `(Z)
95+Now we have a guess for hole_2 which is itself a guess for hole_0:
99+ ?{hole_0} ≈ ?{hole_2} ≈ Prelude.Nat.Z . {hole_2} . {hole_0}
101+The guesses can be accepted by calling the 'solve' tactic.
84Example Showing Patterns
103Example Showing Patterns
85------------------------
104------------------------
87−In this example a parameter 'n' has been added to the function. This allows us to see how patterns are used. Starting with this file:
106+In this next example a parameter 'n' has been added to the function. This allows us to see how patterns are used. Starting with this file:
89.. code-block:: idris
108.. code-block:: idris