Commit e1dd1838 authored by Taddeus Kroes's avatar Taddeus Kroes

Added TODO to filter_duplicates.

parent 430b1f49
...@@ -29,6 +29,17 @@ class Possibility(object): ...@@ -29,6 +29,17 @@ class Possibility(object):
def filter_duplicates(items): def filter_duplicates(items):
"""
Filter duplicated possibilities. Duplicated possibilities occur in n-ary
nodes, the root-level node and a lower-level node will both recognize a
reqrite possibility within their sscope, whereas only the root-level one
matters.
Example: 1 + 2 + 3
The addition of 1 and 2 is recognized bij n-ary additions "1 + 2" and
"1 + 2 + 3". The "1 + 2" addition should be removed by this function.
"""
# TODO: Finish according to docstrings
unique = [] unique = []
for item in items: for item in items:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment