Advertisement
Guest User

Untitled

a guest
Apr 26th, 2021
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. let split_arr_right arr = Array.sub arr 2 (Array.length arr / 2)
  2. let split_arr_left arr = Array.sub arr 0 (Array.length arr / 2)
  3.  
  4. let slice_arr arr coord =
  5. match coord with
  6. | "NW" -> Array.map (split_arr_left) (split_arr_left dummy)
  7. | "NE" -> Array.map (split_arr_right) (split_arr_left dummy)
  8. | "SW" -> Array.map (split_arr_left) (split_arr_right dummy)
  9. | "SE" -> Array.map (split_arr_right) (split_arr_right dummy)
  10. | _ -> failwith "erro"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement