concept Ctrl - Alt - L in category idris
appears as: Ctrl-Alt-L

This is an excerpt from Manning's book Type-Driven Development with Idris.
Implement a function for multiplying matrices, following the description given in section 3.3.1. Hint: This definition is quite tricky and involves multiple steps. Consider the following: You can test your answer at the REPL as follows:
- You have a left matrix of dimensions n × m, and a right matrix of dimensions m × p. A good start is to use transposeMat on the right matrix.
- Remember that you can use Ctrl-Alt-L to lift holes to top-level functions.
- Remember to pay close attention to the types of the local variables and the types of the holes.
- Remember to use Ctrl-Alt-S to search for expressions, and pay close attention to the types of any resulting holes.
*ex_3_3_3> multMatrix [[1,2], [3,4], [5,6]] [[7,8,9,10], [11,12,13,14]] [[29, 32, 35, 38], [65, 72, 79, 86], [101, 112, 123, 134]] : Vect 3 (Vect 4 Integer)
When lifting a definition with Ctrl-Alt-L, Idris will generate a new definition with the same name as the hole, using all of the local variables in the generated type. In this case, you know you aren’t going to need all of them, so you can edit out the unnecessary xs argument.