Skip to content

Commit

Permalink
Update auto-tuning.md
Browse files Browse the repository at this point in the history
  • Loading branch information
david-broman committed Nov 25, 2023
1 parent 5471fb5 commit c5e36ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/how-to-guides/auto-tuning.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ using the keyword `hole`. The `hole` takes as argument the type of the hole
For example, the following defines a function `sort` that chooses sorting
algorithm based on input data length.

```
```mc
let sort = lam seq.
let threshold = hole (IntRange {default = 10, min = 0, max = 10000}) in
if leqi (length seq) threshold then insertionSort seq
Expand Down Expand Up @@ -69,7 +69,7 @@ each possible context.
For instance, the following defines a function `hcreate` that chooses between
two sequence representations:

```
```mc
let hcreate = lam n. lam f.
let rope = hole (Boolean {default = true, depth = 1}) in
(if rope then createRope else createList) n f
Expand Down

0 comments on commit c5e36ce

Please sign in to comment.