import { List } from '../types' ; import { Nothing } from '@typed/maybe' ; import { curry2 } from '@typed/functions' ; import { slice } from '../slice' ; name export const drop = curry2 ( __drop ) ; export type Drop = { < A > ( quanity , list ) : Array < A > ; < A > ( quanity ) : ( list : List < A > ) => Array < A > ; } ; function __drop < A > ( quanity , list ) { return slice ( quanity , Nothing , list ) ; }