aboutsummaryrefslogtreecommitdiff
path: root/lib/basic.ml
blob: 76b686384719a1426a3a616d108e0fab8e403d3f (plain)
1
2
3
let array_drop n arr =
  if Array.length arr < n then [||] else Array.sub arr n (max (Array.length arr - n) 0)