APL Wiki logo: Difference between revisions
Jump to navigation
Jump to search
→Doing something with what we made =
Miraheze>Adám Brudzewsky |
Miraheze>Adám Brudzewsky |
||
Line 305: | Line 305: | ||
You may recognise the pattern here as [[wikipedia:augmented assignment]] from C and related programming languages. APL allows you to use any function to modify values in-place. If you are not familiar with this, then just think of <source lang=apl inline>name,←value</source> as <source lang=apl inline>name←name,value</source> (but the pass-though value is whatever is on the right of the assignment arrow). | You may recognise the pattern here as [[wikipedia:augmented assignment]] from C and related programming languages. APL allows you to use any function to modify values in-place. If you are not familiar with this, then just think of <source lang=apl inline>name,←value</source> as <source lang=apl inline>name←name,value</source> (but the pass-though value is whatever is on the right of the assignment arrow). | ||
</source> | </source> | ||
== Doing something with what we made | == Doing something with what we made == | ||
Now we we can put the SVG data into a native (OS) file: | Now we we can put the SVG data into a native (OS) file: | ||
<source lang=apl> | <source lang=apl> | ||
Line 316: | Line 316: | ||
</source> | </source> | ||
[[File:)HTML rendering APL Wiki logo.png|frameless|]HTML rendering APL Wiki logo]] | [[File:)HTML rendering APL Wiki logo.png|frameless|]HTML rendering APL Wiki logo]] | ||
<div class="mw-collapsible mw-collapsed"> | == Code == | ||
<div class="toccolors mw-collapsible mw-collapsed" style="background:none"> | |||
The below function contains all the code from above. It takes a file name as argument. | The below function contains all the code from above. It takes a file name as argument. | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> |