Details
-
Type:
Improvement
-
Status: Won't Fix
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: utils
-
Labels:None
-
Story Points:1
-
Epic Link:
-
Sprint:AP S19-3, AP S19-4
-
Team:Alert Production
Description
In the review to DM-16535, John Parejko requested that the flatten function, which converts an iterable of mixed scalars and iterables to a list of scalars, be made a public function in utils so that it could be used elsewhere.
Given that "flatten" is a very common name in the Stack, perhaps we should choose a different name to avoid confusion.
Question for John Parejko: should lsst.utils.flatten stick to returning a sequence, or would making it a generator be useful?