[sync] + fn.constant
This commit is contained in:
1 parent
5e34a0aad3
commit
7300a49fc4
1 file changed
+4
@@ -6,6 +6,10 @@ from glob import glob
|
||||
import bson.json_util
|
||||
|
||||
|
||||
def constant(value):
|
||||
return lambda _: value
|
||||
|
||||
|
||||
def combine(items):
|
||||
if len(items) == 0:
|
||||
return []
|
||||
|
||||
Reference in new issue
Block a user