Formatting

This commit is contained in:
richard-dds
2018-10-19 15:03:53 -04:00
parent c81ce71eb9
commit 99a61aa9a6
5 changed files with 19 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
import re
def first_or_none(predicate, lst):
return next((x for x in lst if predicate(x)), None)