diff --git a/README.md b/README.md index e71536b..40aa557 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ flatter_list = list(itertools.chain.from_iterable()) product_of_elems = functools.reduce(lambda out, x: out * x, ) list_of_chars = list() ``` -* **Check out module [operator](#operator) for alternative versions of examples.** +* **Module [operator](#operator) provides functions itemgetter() and mul() that offer the same functionality as lambda expressions above.** ```python = .count() # Returns number of occurrences. Also works on strings. diff --git a/index.html b/index.html index 05a4801..ed6f800 100644 --- a/index.html +++ b/index.html @@ -250,7 +250,7 @@ product_of_elems = functools.reduce(lambda out list_of_chars = list(<str>)
    -
  • Check out module operator for alternative versions of examples.
  • +
  • Module operator provides functions itemgetter() and mul() that offer the same functionality as lambda expressions above.
<int> = <list>.count(<el>)     # Returns number of occurrences. Also works on strings.
 index = <list>.index(<el>)     # Returns index of first occurrence or raises ValueError.