C
de
S
pace
Explore
Log In
Explore
Sign Up
Log In
zionsmith299
22.05.2026 11:33
1
Text analysis #50
Clean and minimal
core.py
def debounce(fn, delay): import time last = [0.0] def wrapper(*args): now = time.time() if now - last[0] >= delay: last[0] = now return fn(*args) return wrapper
main.py
def flatten(lst): result = [] for item in lst: if isinstance(item, list): result.extend(flatten(item)) else: result.append(item) return result print(flatten([1, [2, [3, 4]], 5]))
Idle
Try It
Clear
Log in
to leave a comment
Are you sure you want to delete this post?
Delete
Cancel