Skip to content

Allow for instantiation of FunctorCollection() with empty dictionary

Abhijit Mathad requested to merge AM_functorcollections into master

Closes #27 (closed). However I have gone the other way. I have allowed for instantiation of FunctorCollection() with empty dictionary. This allows for

f = FunctorCollection()
for fc in list_of_functorcollections: f+= fc

The alternative was to support:

f = FunctorCollection(list_of_functorcollections)

But users might get confused with whether FunctorCollection receives a dictionary of functors or list of FunctorCollection.

To be tested with: DaVinci!664 (merged)

Edited by Abhijit Mathad

Merge request reports