Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

deleted 191 characters in body
Source Link
Jonah
  • 34.1k
  • 4
  • 41
  • 95

J, 4946 bytes

;:@'AND NAND OR NOR XOR XNOR'#~*`*XNOR'#~*,*:`+,+.`+:`~,+:`=`,~:0,=

Try it online! Try it online!

-2 bytest5 bytes thanks to Bubbler

I have been waiting 3 years to use Evoke Gerund in a challenge, and the day of reckoning has finally arrived!

Explanation:

We execute each of the gerundsa train *`**,*:`+,+.`+,+:`~,~:`=,= corresponding to the gates on the arguments, which will produce a single boolean mask of the results.

We then apply that mask as a filter #~ on the list of words, which is in the same order.

Note: Since the returned strings of are of unequal length, J requires them to be boxed.

J, 49 bytes

;:@'AND NAND OR NOR XOR XNOR'#~*`*:`+.`+:`~:`=`:0

Try it online!

-2 bytest thanks to Bubbler

I have been waiting 3 years to use Evoke Gerund in a challenge, and the day of reckoning has finally arrived!

Explanation:

We execute each of the gerunds *`*:`+.`+:`~:`= corresponding to the gates on the arguments, which will produce a single boolean mask of the results.

We then apply that mask as a filter #~ on the list of words, which is in the same order.

Note: Since the returned strings of are of unequal length, J requires them to be boxed.

J, 46 bytes

;:@'AND NAND OR NOR XOR XNOR'#~*,*:,+.,+:,~:,=

Try it online!

-5 bytes thanks to Bubbler

We execute a train *,*:,+.,+:,~:,= corresponding to the gates on the arguments, which will produce a single boolean mask of the results.

We then apply that mask as a filter #~ on the list of words, which is in the same order.

Note: Since the returned strings of are of unequal length, J requires them to be boxed.

added 28 characters in body
Source Link
Jonah
  • 34.1k
  • 4
  • 41
  • 95

J, 5149 bytes

;:@'AND NAND OR NOR XOR XNOR'#~(*`*XNOR'#~*`*:`+.`+:`~:`=)``=`:0

Try it online! Try it online!

-2 bytest thanks to Bubbler

I have been waiting 3 years to use Evoke Gerund in a challenge, and the day of reckoning has finally arrived!

Explanation:

We execute each of the gerunds *`*:`+.`+:`~:`= corresponding to the gates on the arguments, which will produce a single boolean mask of the results.

We then apply that mask as a filter #~ on the list of words, which is in the same order.

Note: Since the returned strings of are of unequal length, J requires them to be boxed.

J, 51 bytes

;:@'AND NAND OR NOR XOR XNOR'#~(*`*:`+.`+:`~:`=)`:0

Try it online!

I have been waiting 3 years to use Evoke Gerund in a challenge, and the day of reckoning has finally arrived!

Explanation:

We execute each of the gerunds *`*:`+.`+:`~:`= corresponding to the gates on the arguments, which will produce a single boolean mask of the results.

We then apply that mask as a filter #~ on the list of words, which is in the same order.

Note: Since the returned strings of are of unequal length, J requires them to be boxed.

J, 49 bytes

;:@'AND NAND OR NOR XOR XNOR'#~*`*:`+.`+:`~:`=`:0

Try it online!

-2 bytest thanks to Bubbler

I have been waiting 3 years to use Evoke Gerund in a challenge, and the day of reckoning has finally arrived!

Explanation:

We execute each of the gerunds *`*:`+.`+:`~:`= corresponding to the gates on the arguments, which will produce a single boolean mask of the results.

We then apply that mask as a filter #~ on the list of words, which is in the same order.

Note: Since the returned strings of are of unequal length, J requires them to be boxed.

added 266 characters in body
Source Link
Jonah
  • 34.1k
  • 4
  • 41
  • 95

J, 51 bytes

;:@'AND NAND OR NOR XOR XNOR'#~(*`*:`+.`+:`~:`=)`:0

Try it online!

I have been waiting 3 years to use Evoke Gerund in a challenge, and the day of reckoning has finally arrived!

Explanation:

We execute each of the gerunds *`*:`+.`+:`~:`= corresponding to the gates on the arguments, which will produce a single boolean mask of the results.

We then apply that mask as a filter #~ on the list of words, which is in the same order.

Note: Since the returned strings of are of unequal length, J requires them to be boxed.

J, 51 bytes

;:@'AND NAND OR NOR XOR XNOR'#~(*`*:`+.`+:`~:`=)`:0

Try it online!

I have been waiting 3 years to use Evoke Gerund in a challenge, and the day of reckoning has finally arrived!

Note: Since the returned strings of are of unequal length, J requires them to be boxed.

J, 51 bytes

;:@'AND NAND OR NOR XOR XNOR'#~(*`*:`+.`+:`~:`=)`:0

Try it online!

I have been waiting 3 years to use Evoke Gerund in a challenge, and the day of reckoning has finally arrived!

Explanation:

We execute each of the gerunds *`*:`+.`+:`~:`= corresponding to the gates on the arguments, which will produce a single boolean mask of the results.

We then apply that mask as a filter #~ on the list of words, which is in the same order.

Note: Since the returned strings of are of unequal length, J requires them to be boxed.

Source Link
Jonah
  • 34.1k
  • 4
  • 41
  • 95
Loading

AltStyle によって変換されたページ (->オリジナル) /