import { takeRight } from 'fp-ts/lib/Array' ; since export function takeLast ( i ) ; export function takeLast < A > ( i , as ) ; export function takeLast < A > ( i , as ? ) { const f = takeRight ( i ) ; if ( as === undefined ) { return f ; } else { return f ( as ) ; } }