diff --git a/README.md b/README.md index c08811b9b..80c8a4ccd 100644 --- a/README.md +++ b/README.md @@ -95,119 +95,12 @@ def spread(arg): result.extend(spread(list(map(lambda x : deep(x) if type(x) == list else x,arr)))) return result - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ``` ```python deep_flatten([1, [2], [[3], 4], 5]) # [1,2,3,4,5] ``` + ### gcd Calculates the greatest common divisor between two or more numbers/lists. diff --git a/snippets/deep_flatten.md b/snippets/deep_flatten.md index eed6f3be0..be25ff214 100644 --- a/snippets/deep_flatten.md +++ b/snippets/deep_flatten.md @@ -20,6 +20,7 @@ def spread(arg): result = [] result.extend(spread(list(map(lambda x : deep(x) if type(x) == list else x,arr)))) return result + ``` ```python