basic: currying is not left-associative

This commit is contained in:
minjaesong
2020-12-27 01:38:33 +09:00
parent cc2d3e79dd
commit dce251fbc9
3 changed files with 12 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
1 OPTIONDEBUG 1:OPTIONTRACE 1
10 DEFUN APPLY(X,F)=F(X):REM bug- F<~X must return function and F(X) must return value but right now they both return a function?
20 DEFUN FUN(X)=X^2
30 K=APPLY(42,FUN)
100 PRINT K
110 PRINT TYPEOF K
120 RESOLVE K