[Bug-apl] Progress with GNU APL.js

2014-03-20 Thread Thomas Baruchel
Hi, please have a look at http://baruchel.hd.free.fr/apps/apl/#code=%E2%8D%9D%20prime%20numbers%20up%20to%20100%0A(~R%E2%88%8AR%E2%88%98.%C3%97R)%2FR%E2%86%901%E2%86%93%CE%B9R%E2%86%90100 I has huge difficulties at finding an equivalent of the REPL system and finally I discarded it as well and

Re: [Bug-apl] How to zero every other 1 in a sequence

2014-03-20 Thread Kacper Gutowski
On 2014-03-21 00:23:41, Elias Mårtenson wrote: > One of my experiments was very short, and tantalisingly close to correct: > > ≠\V > > Unfortunately, it's not quite right. Does anyone have an idea how to coerce > that one into being right? I couldn't come up with anything better, but if you

[Bug-apl] Re : Re: How to zero every other 1 in a sequence

2014-03-20 Thread Thomas Baruchel
> ≠\V > > > Unfortunately, it's not quite right. Does anyone have an idea how to coerce > that one into being right? Elias, I am aware of what does your code, but you can't achieve what you want with something that short AFAIK); did you try my code? You can probably improve it, but have alook

Re: [Bug-apl] How to zero every other 1 in a sequence

2014-03-20 Thread Elias Mårtenson
One of my experiments was very short, and tantalisingly close to correct: ≠\V Unfortunately, it's not quite right. Does anyone have an idea how to coerce that one into being right? Regards, Elias On 20 March 2014 16:10, wrote: > Elias Mårtenson wrote: > > Assume I have a binary sequence. S

Re: [Bug-apl] How to zero every other 1 in a sequence

2014-03-20 Thread baruchel
Elias Mårtenson wrote: > Assume I have a binary sequence. Say, something like this: > > 0 0 1 1 0 0 1 1 1 1 1 0 0 0 1 0 1 0 1 1 0 1 1 1 > > Here, we can see a few sequences of consecutive ones. I want to zero out > every second in each sequence. I.e, I'd like to get the following result: > > 0 0 1