Add Margin.kt

This commit is contained in:
betbetter committed 2026-11-13 23:36:09 +00:00
1 parent 0c6a7d6eb2
commit 724d35b2a0
1 file changed
+1
+1
View File
@@ -0,0 +1 @@
fun margin(prices: List<Double>): Double = prices.sumOf { 1 / it } - 1