Jump to content

Shoelace formula for polygonal area: Difference between revisions

m
→‎Python: Defined in terms of reduce and cycle: Section title amended by its original author
m (→‎Python: Defined in terms of reduce and cycle: Section title amended by its original author)
Line 1,371:
</lang>
 
===Python: HaskellDefined translationin terms of reduce and cycle===
Or, defined in terms of '''reduce''' and '''cycle''':
{{Trans|Haskell}}
{{Works with|Python|3.7}}
Line 1,418 ⟶ 1,417:
<pre>Polygonal area by shoelace formula:
[(3, 4), (5, 11), (12, 8), (9, 5), (5, 6)] -> 30.0</pre>
 
 
===Python: Alternate===
9,655

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.