Closed ililic closed 3 years ago
https://sdk.dfinity.org/docs/base-libraries/array#flatten
I believe the method signature should be func flatten<A>(xs : [[A]]) : [A]
func flatten<A>(xs : [[A]]) : [A]
Added this as an issue to the motoko-base repo: https://github.com/dfinity/motoko-base/issues/239
Fixed in https://github.com/dfinity/motoko-base/issues/239
Updated doc deployed on the website
https://sdk.dfinity.org/docs/base-libraries/array#flatten
I believe the method signature should be
func flatten<A>(xs : [[A]]) : [A]