import { curry3 } from '@typed/functions' ; name export const substr = curry3 ( __substr ) ; export type Substr = { ( from , length , str ) : string ; ( from , length ) : ( str : string ) => string ; ( from ) : { ( length , str ) : string ; ( length ) : ( str : string ) => string ; } ; } ; function __substr ( from , length , str ) { return str . substr ( from , length ) ; }