+> (yield) operator and nice debug output!

This commit is contained in:
Xander Mckay 2024-11-26 15:37:08 -05:00
parent 440bd2f153
commit 0ebe183cfe
4 changed files with 55 additions and 9 deletions

View file

@ -4,6 +4,13 @@ def fibonacci(x: int) -> list[int]:
for i in range(1, x):
start.append <| start[i] + start[i - 1]
return start
def a():
yield 1
+> 2
def b():
+>> a()
+>> a()
b() |> list |> print
a = 12 |> fibonacci
b = a :: a :: a :: a
c = b :: b :: b :: b
@ -24,7 +31,7 @@ print(d3d2(x=2)(y=4))
a = 1
a++
a |> print ?? 11 |> print
print(None ?? a) # 2
'''a'''
/*
very bad code that is