News for hackers. Stuff that matters.
Re:A History of APL in Fifty Functions (2016) by david_draco on Thursday November 21, 2019 @06:00AM (#21593004)
You can do that easily in numpy. ((x>0)-(x<0))*1 will give zeros and ones.

There are no comments on this comment yet.