import { split } from '@lib' ; import { Coord } from './model/coord.class' ; export const interpret = ( input ) : Coord [ ] => { const points = [ ] ; for ( const line of split ( input ) ) { if ( line ) { const lineSplit = line . split ( ', ' ) ; points . push ( new Coord ( Number ( lineSplit [ 1 ] ) , Number ( lineSplit [ 0 ] ) ) ) ; } } return points ; } ;