Clean remove four letter things

This commit is contained in:
Waylon Walker 2021-06-11 07:24:53 -05:00
parent 127cd92f46
commit 26a25aef4a

View file

@ -59,24 +59,12 @@ pipeline = Pipeline(
outputs="packages",
name="packages",
),
node(
lambda packages: [package for package in packages if len(package) == 4],
inputs="packages",
outputs="four_letter_packages",
name="four_letter_packages",
),
node(
lambda words: words.split(),
inputs="raw_words_alpha",
outputs="words",
name="words",
),
node(
lambda words: [word for word in words if len(word) == 4],
inputs="words",
outputs="four_letter_words",
name="four_letter_words",
),
node(
lambda words, packages: list(set(words) - set(packages)),
inputs=["words", "packages"],