Skip to content

v.0.3.1

Choose a tag to compare

@MikeTheHammer MikeTheHammer released this 17 Jan 16:16
· 16 commits to main since this release

Added generate_true_false_matrix_from_list_of_strings

A convenience function. It takes a string name and a list of strings, and
returns the true-false matrix built from those values.

generate_true_false_matrix_from_list_of_strings(
    "burger_toppings",
    ["with_cheese", "with_ketchup", "with_mustard"]
)

is the equivalent of

burger_toppings = namedtuple(
    "burger_toppings", 
    ["with_cheese", "with_ketchup", "with_mustard"]
)
generate_true_false_matrix_from_namedtuple(burger_toppings)