Folds the elements of list from left.
The fold operation.
The folded value.
expect( foldL((x: string) => (y: string) => y + x)("")(fromString("hoge")),).toStrictEqual( "egoh",);expect( foldL((x: string) => (y: string) => y + x)("")(fromString("")),).toStrictEqual( "",); Copy
expect( foldL((x: string) => (y: string) => y + x)("")(fromString("hoge")),).toStrictEqual( "egoh",);expect( foldL((x: string) => (y: string) => y + x)("")(fromString("")),).toStrictEqual( "",);
Folds the elements of list from left.