Skip to content

v2.4.0

Compare
Choose a tag to compare
@elliotchance elliotchance released this 17 Feb 18:20
· 13 commits to master since this release
4abd3ae
Adding Flat (#187)

Flat flattens the two-dimensional slice into one-dimensional slice.
Slices of zero-length are ignored.

Examples:

	Flat([[100], [101, 102], [102, 103]])   => [100, 101, 102, 102, 103]
	Flat([nil, [101, 102], []])             => [101, 102]

Co-authored-by: Dmytro Misik <[email protected]>