#FirstOccurrence
#APLQuest 2017-08: Write a function that takes a Boolean vector or scalar and “turns off” all the 1s after the first 1 (see apl.quest/2017/8/ to test your solution and view ours).

#APL #BooleanVectors #FirstOccurrence
APL Quest 2017-8: Be the First 1
Write a function that takes a Boolean vector or scalar and “turns off” all the 1s after the first 1.
apl.quest
August 31, 2026 at 1:40 PM