/**
 * Copyright (c) 2016-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ interface Functor < T > { map < U > ( f ) : Functor < U > ; } export function map < T , U > ( f , funct ) { return funct . map ( f ) ; } export function pipeline2 < T , U , V > ( funct , f , g ) { return funct . map ( f ) . map ( g ) ; } export function pipeline3 < T , U , V , W > ( funct , f , g , h ) { return funct . map ( f ) . map ( g ) . map ( h ) ; } export function pipeline4 < T , U , V , W , X > ( funct , f , g , h , i ) { return funct . map ( f ) . map ( g ) . map ( h ) . map ( i ) ; } export function pipeline5 < T , U , V , W , X , Y > ( funct , f , g , h , i , j ) { return funct . map ( f ) . map ( g ) . map ( h ) . map ( i ) . map ( j ) ; } export function pipeline6 < T , U , V , W , X , Y , Z > ( funct , f , g , h , i , j , k ) { return funct . map ( f ) . map ( g ) . map ( h ) . map ( i ) . map ( j ) . map ( k ) ; }