From 27ccabb451b03c69ef81dc070525360e9a134296 Mon Sep 17 00:00:00 2001 From: Meet Zaveri Date: Tue, 20 Feb 2018 18:57:36 +0530 Subject: [PATCH] Update deep_flatten.md --- snippets/deep_flatten.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/deep_flatten.md b/snippets/deep_flatten.md index 3da31478d..62d086589 100644 --- a/snippets/deep_flatten.md +++ b/snippets/deep_flatten.md @@ -18,7 +18,7 @@ def spread(arg): def deep_flatten(arr): result = [] result.extend( - spread(list(map(lambda x: deep(x) if type(x) == list else x, arr)))) + spread(list(map(lambda x: deep_flatten(x) if type(x) == list else x, arr)))) return result ```