function chainimport { chain } from "https://dotland.deno.dev/x/rambda@v9.2.0/index.d.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[]