split_after : int -> 'a list -> 'a list * 'a list
- split_after 2 [1,2,3,4,5] > val it = ([1, 2], [3, 4, 5]) : int list * int list - split_after 0 [1,2,3,4,5]; > val it = ([], [1, 2, 3, 4, 5]) : int list * int list - split_after 5 [1,2,3,4,5]; > val it = ([1, 2, 3, 4, 5], []) : int list * int list - split_after 6 [1,2,3,4,5]; ! Uncaught exception: ! HOL_ERR - split_after 0 ([]:int list); > val it = ([], []) : int list * int list