import { array } from 'fp-ts/lib/Array' ; import { fromFoldable } from 'fp-ts/lib/Record' ; import { getLastSemigroup } from 'fp-ts/lib/Semigroup' ; since export const fromPairs = fromFoldable ( getLastSemigroup < any > ( ) , array ) ;