import { pipe , flow } from 'fp-ts/function' ; const double = ( n ) : number => n * 2 ; const increment = ( n ) : number => n + 1 ; const decrement = ( n ) : number => n - 1 ; const program1 = ( n ) : number => pipe ( n , increment , double , decrement ) ; console . log ( program1 ( 10 ) ) ; const program2 = flow ( increment , double , decrement ) ; console . log ( program2 ( 10 ) ) ;