git @ Cat's Eye Technologies Oxcart / 3a11bcc
We've come close! Chris Pressey 5 years ago
1 changed file(s) with 13 addition(s) and 18 deletion(s). Raw diff Collapse all Expand all
408408 * reset to the main stack
409409 * continue conditionally
410410
411 Is this it?
412
413 > | 0^^^^^
414 > | (<0^'S:<:0v\:v:)'%
415 > = -2:[1]
416 > = -1:[5]
411 Is this it? With n=5:
417412
418413 | 0^^^^^
419 | (<0^'S:<:0v\0
414 | (<0^'S:<:0v\Y:v:)'%
420415 = -2:[1]
421 = -1:[5]
422
423 OK. Let's try implementing it in small bits, then put them all together.
424
425 We demonstrate (with an initial n=5) that we can move _n_ to the
426 "data stack" (stack -1), then put a 1 on the "garbage stack"
427 (stack -2),
428
429 | 0^^^^^
430 | (<0^'
416 = -1:[0,1,2,3,4,5]
417 = > 0:[#k]
418
419 And with n=0:
420
421 | 0
422 | (<0^'S:<:0v\Y:v:)'%
431423 = -2:[1]
432 = -1:[5]
424 = -1:[0,1,2,3,4,5]
425 = > 0:[#k]
426
427 Oh no!
433428
434429 ### Minimality of Oxcart
435430