diff --git a/Margin.kt b/Margin.kt new file mode 100644 index 0000000..9ee59e0 --- /dev/null +++ b/Margin.kt @@ -0,0 +1 @@ +fun margin(prices: List): Double = prices.sumOf { 1 / it } - 1