diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-08-01 18:46:05 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-08-01 18:46:05 -0400 |
| commit | b972316dacfe6e138d8d81b579ab6f1097fa1fc8 (patch) | |
| tree | e2f86ba54cf744948f6f7e8b38ea203e8e332aa2 | |
| parent | 991ed92b7e9c37389c282fd0082cc48ea16287d3 (diff) | |
Allow DGenFn to take a list of primitives as the left argument
| -rwxr-xr-x | c.bqn | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -205,9 +205,10 @@ prims←⟨ ∘,○,⊸,⟜,⌾,⊘,◶,⎉,⚇,⍟ ⟩ DGenFn←{ + p←𝕨⊣prims ⟨t,r,nVar,lits⟩←Tokenize𝕩 ⟨bc,u,blk⟩←nVar‿r DParse t - o←(u-(vi+nVar-≠prims)×u≥vi)⊏prims∾LitVal¨lits + o←(u-(vi+nVar-≠p)×u≥vi)⊏p∾LitVal¨lits ⟨bc,o,⟨⟩,blk⟩ } DRun←{ |
