bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Thomas Baruchel
Subject: [Bug-apl] Re : Re: How to zero every other 1 in a sequence
Date: Thu, 20 Mar 2014 18:02:33 +0100

> ≠\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 at the last part:

  2|⊤\2+V
or: 2||\2+V 

which can isolate the first 1 of each substring?

I am not an expert of APL, but I spent time on your request, and I don't think 
you can expect
a three-characters answer.

Regards,

-- 
Th. Baruchel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]