Skip to content

Commit

Permalink
edited sml list slides
Browse files Browse the repository at this point in the history
  • Loading branch information
Whitomtit committed Jun 24, 2024
1 parent 0c1e0c3 commit b7e9b0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Material/Tutorials/sml/lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ fun xs @ ys = foldr op:: ys xs;
### builtin function `exists`

```sml
fun exists p [] = false
fun exists p [] = false
| exists p (x :: xs) = (p x) orelse exists p xs;
```
<!-- .element: data-thebe-executable-sml data-language="text/x-ocaml" -->
Expand All @@ -526,8 +526,8 @@ Bound as `List.exists`
### builtin function `all`

```sml
fun all p [] = true
| all p (x::xs) = (p x) andalso all p xs;
fun all p [] = true
| all p (x :: xs) = (p x) andalso all p xs;
```
<!-- .element: data-thebe-executable-sml data-language="text/x-ocaml" -->

Expand Down

0 comments on commit b7e9b0e

Please sign in to comment.