Xqt added a comment.

  What is the best way for streams/genrators to be implemented?
  The current approach is having a behaviour like a set which means the result 
has unique elements. The tests compares the result with set:
  `{S1} ∩ {S2}`
  `set(S1) & set(S2)`
  e.g. `'ABBCD' ∩ 'ABCBA'` gives `'ABC'`
  
  Another approach would be to have an intersection of each element like:
  `{|S1|} ∩ {|S2|}`
  `collection.Counter(S1) & collection.Counter(S2)`
  e.g. `'ABBCD' ∩ 'ABCBA'` gives `'ABBC'` or `'ABCB'`
  
  Probably we can have both.

TASK DETAIL
  https://phabricator.wikimedia.org/T263947

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: JJMC89, valhallasw, Aklapper, Mpaa, Xqt, pywikibot-bugs-list, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, 
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to