mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-17 00:16:04 +09:00
basic: changing curry operator to (~<), i thought plunger (or grabber) is semantically less awkward than the arrow
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
10 DEFUN SINC(P)=SIN(P)/P
|
||||
20 DEFUN OTHERFUN(A,B)=A+"|"+B
|
||||
30 DEFUN PLOTLINE(F,X)=MAP(OTHERFUN<~F(X),1 TO 5):REM needs auto-currying
|
||||
31 DEFUN PLOTLINE2(F,X)=MAP(OTHERFUN<~F<~X,1 TO 5):REM WORKS!
|
||||
30 DEFUN PLOTLINE(F,X)=MAP(OTHERFUN~<F(X),1 TO 5):REM needs auto-currying
|
||||
31 DEFUN PLOTLINE2(F,X)=MAP(OTHERFUN~<F~<X,1 TO 5):REM WORKS!
|
||||
100 PRINT PLOTLINE(SINC,333)
|
||||
101 PRINT PLOTLINE2(SINC,333)
|
||||
101 PRINT PLOTLINE2(SINC,333)
|
||||
|
||||
Reference in New Issue
Block a user