Post #3126367
2026-06-05 17:31 UTC
For example:
: 5reverse ( x1 x2 x3 x4 x5 -- x5 x4 x3 x2 x1 )
2swap >r 2swap r> 2swap
;
Replies (1)
-
@joe@f.duriansoftware.com 2026-06-05 17:32
@lofty@fieldprogrammable.gay when i was working on factor, i was always tempted to write a `swap(` parsing word that could read an arbitrary stack effect and emit the corresponding shuffles