/**
 * Implementare l'istanza di `Functor` per `IO`
 */ import { URI } from 'fp-ts/IO' ; import { Functor1 } from 'fp-ts/Functor' ; const Functor = { URI , map : null as any } ; import * as assert from 'assert' ; const double = ( n ) : number => n * 2 ; assert . deepStrictEqual ( Functor . map ( ( ) => 1 , double ) ( ) , 2 ) ;