(no title)
zoltar | 2 years ago
https://santhoshkris.medium.com/threading-macros-in-clojure-...
I'll sometimes abuse Python's compose to do similar things I won't send out for code review. Maybe I really should just try to live in Coconut instead of silly stuff like:
import chess
import chess.svg
from IPython.display import SVG, display
from functools import reduce
def rcompose(*fs):
return reduce(lambda f, g: lambda *xs, **ys: g(f(*xs, **ys)), fs)
inline_board = rcompose(
chess.Board,
chess.svg.board,
SVG,
display)
Factor's quotations dealing with stack management weirdness is super nice, too.https://concatenative.org/wiki/view/Concatenative%20language...
It still has a bit more stack juggling than I like, though. That could just be a "me" problem. Props to that whole community for their effort.
No comments yet.