function chainimport { chain } from "https://dotland.deno.dev/x/rambda@9.4.1/mod.ts"; chain<T, U>(fn: (n: T) => U[], list: T[]): U[]The method is also known as flatMap. chain<T, U>(fn: (n: T) => U[]): (list: T[]) => U[]The method is also known as flatMap. Type ParametersTUParametersfn: (n: T) => U[]list: T[]ReturnsU[]Type ParametersTUParametersfn: (n: T) => U[]Returns(list: T[]) => U[]