mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
12 lines
168 B
Python
12 lines
168 B
Python
def cons(x, ys):
|
|
return x, *ys
|
|
|
|
def cons_each(xs, ys):
|
|
for x in xs:
|
|
yield x, *ys
|
|
|
|
print(cons(1,(2,3,4)))
|
|
|
|
for l in cons_each((1,2),(3,4)):
|
|
print(l)
|