Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

View file

@ -0,0 +1,4 @@
1 1 + ! 2
[ + 1 1 ] reverse call ! 2
{ 1 2 3 4 5 } [ sq ] map ! { 1 4 9 16 25 }
[ map [ sq ] { 1 2 3 4 5 } ] reverse call ! { 1 4 9 16 25 }

View file

@ -0,0 +1,3 @@
MACRO: pre ( quot -- quot ) reverse ;
[ + 2 2 ] pre ! 4

View file

@ -0,0 +1 @@
[ + 3 + 2 2 ] pre ! 7

View file

@ -0,0 +1,3 @@
MACRO: pre ( quot -- quot ) 1 cut swap [ 0 ] dip reduce 1quotation ;
[ + 1 2 3 4 5 ] pre ! 15

View file

@ -0,0 +1,4 @@
USE: infix
[infix
5*(1+1) ! 10
infix]