Dfn: Difference between revisions

Jump to navigation Jump to search
573 bytes added ,  20:49, 7 June 2021
Line 50: Line 50:
N/A
N/A
</source>
</source>
=== Shy results ===
[[Roger Hui]]'s <source lang=apl inline>assert</source> is a dfn that has become the de facto standard when it comes to test suites.<ref>Stefan Kruger. [https://www.dyalog.com/blog/2021/04/2020-problem-solving-competition-phase-ii-highlights/ 2020 Problem Solving Competition – Phase II highlights]. [[Dyalog Ltd.|Dyalog]] blog. April 30, 2021.</ref>. In it, Hui uses both a [[default left argument]] and a final assignment to make the dfn shy:
<source lang=apl>
assert ← {⍺←'assertion failure' ⋄ 0∊⍵:⍺ ⎕signal 8 ⋄ shy←0}</source>


== External links ==
== External links ==

Navigation menu