import { curry3 } from '@typed/functions' ; name export const substring = curry3 ( __substring ) ; export type Substring = { ( from , to , str ) : string ; ( from , to ) : ( str : string ) => string ; ( from ) : { ( to , str ) : string ; ( to ) : ( str : string ) => string ; } ; } ; function __substring ( from , to , str ) { return str . substring ( from , to ) ; }