Charlie Harvey


Sorry, messed up the formatting.

If you had the numbers 1 2 on the stack, what code could you use to end up with 1 1 2 on the stack


or alternatively:

[ dup ] dip

you wouldn't need the '1' then.

I wasn’t completely happy with the repeated 10 here. I am sure I could have done some stack trickery to avoid repeating myself.

42 10 [ /i ] [ mod ] 2bi

Factor documentation (F1) is super useful. In particular, the articles in factor handbook section. More in particular, shuffle words and combinators. Thanks for the article, I had been curious about the contents of the book. Can't wait for you to start on Idris!