From 372d7baa2716b6252ad2a0af52cd6b6189c3941b Mon Sep 17 00:00:00 2001 From: zevav Date: Mon, 13 Aug 2018 23:48:06 -0400 Subject: [PATCH] replaced listcomp with map for brevity --- 2018-08-06-earliest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2018-08-06-earliest.py b/2018-08-06-earliest.py index e8dafc7..04bccf1 100644 --- a/2018-08-06-earliest.py +++ b/2018-08-06-earliest.py @@ -17,7 +17,7 @@ class Date: def get_earliest(*date_strings): - dates = [Date(date_string) for date_string in date_strings] + dates = map(Date, date_strings) return str(min(dates))