Cuneiform (programming language): Difference between revisions

Content deleted Content added
m Examples: syntaxhighlight
Line 179:
</syntaxhighlight>
 
Records can be accessed either via projection or via [[pattern matching]]. The example below extracts the two fields <code>a1</code> and <code>a2</code> from the record <code>r</code>.
 
<syntaxhighlight lang="swift">