From 8dcd60216773022fca195ff79f5ba3b611d3941e Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Wed, 18 Sep 2019 23:46:46 +0300 Subject: [PATCH] Resolve #98 --- snippets/group_by.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/group_by.md b/snippets/group_by.md index 233197f4d..06147a45d 100644 --- a/snippets/group_by.md +++ b/snippets/group_by.md @@ -19,5 +19,5 @@ def group_by(lst, fn): ```py import math group_by([6.1, 4.2, 6.3], math.floor); # {4: [4.2], 6: [6.1, 6.3]} -group_by(['one', 'two', 'three'], 'length'); # {3: ['one', 'two'], 5: ['three']} +group_by(['one', 'two', 'three'], len); # {3: ['one', 'two'], 5: ['three']} ```