RosettaCodeData/Task/Partial-function-application/Oforth/partial-function-application.fth

7 lines
112 B
Forth
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
: fs(s, f) f s map ;
: f1 2 * ;
: f2 sq ;
#f1 #fs curry => fsf1
#f2 #fs curry => fsf2