Joey K Tuttle wrote:
|Your mistake is with "c". In the APL to the right of assignment you
|neglect to inlcude the (*/V)$ in your j code, instead you set c =.
|a,b. try -
| ] c =. (*/v) $ 1, (_1 + i{v) $ 0
Ahhh... I see the error of my ways! I was incorrectly interpreting the
append:
I was seeing ( (*/v) $ 1 ) , ( (_1 + i{v) $ 0 )
when I *should* have seen (*/v) $ ( 1 , ( (_1 + i{v) $ 0 ) ) instead!
Based on what the larger function is supposed to do (where these lines
come from), I figured that some sort of alternation in the 1's and 0's
was a better outcome than just a string of sequential 1's and 0's.
Thanks for helping me remember to evaluate correctly!
Harvey
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm