Skip to content

Commit

Permalink
List.zip now uses Or_unequal_lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka committed Sep 13, 2019
1 parent ac39cdb commit e34fe4b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/bap_primus/bap_primus_lisp_resolve.ml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@ let all_bindings f =
List.for_all ~f:(fun (v,x) ->
f v.data.typ x)

let zip x y = match List.zip x y with
let zip x y =
let open List.Or_unequal_lengths in
match List.zip x y with
| Ok z -> Some z
| _ -> None
| Unequal_lengths -> None

let overload_defun typechecks args s3 =
let open Option in
Expand Down

0 comments on commit e34fe4b

Please sign in to comment.