Simple examples: Difference between revisions
Jump to navigation
Jump to search
→Operators
Miraheze>RikedyP |
Miraheze>Adám Brudzewsky |
||
Line 45: | Line 45: | ||
└────────────────────┘ | └────────────────────┘ | ||
</source> | </source> | ||
So back to our mean example. <source lang=apl inline>(+ | So back to our mean example. <source lang=apl inline>(+⌿ω)</source> gives the sum of the list, which is then divided by <source lang=apl inline>≢ω</source>, the number elements in it. | ||
<source lang=apl> | <source lang=apl> | ||
{(+ | {(+⌿)÷≢ω} 3 4.5 7 21 | ||
8.875 | 8.875 | ||
</source> | </source> |