vault backup: 2023-10-27 14:54:10
This commit is contained in:
parent
0fac88d66f
commit
6c41337f1f
@ -74,4 +74,8 @@ let rec partition p l =
|
|||||||
| h==t> let (l1, l2) = partition p t in
|
| h==t> let (l1, l2) = partition p t in
|
||||||
if p h then (h::l1,l2)
|
if p h then (h::l1,l2)
|
||||||
else (l1, h::l2);;
|
else (l1, h::l2);;
|
||||||
val partition : ('a -> bool) -> 'a list -> 'a list * 'a list = <fun>
|
val partition : ('a -> bool) -> 'a list -> 'a list * 'a list = <fun>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Ex 2.7
|
||||||
|
```Ocaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user