[#116016] [Ruby master Bug#20150] Memory leak in grapheme clusters — "peterzhu2118 (Peter Zhu) via ruby-core" <ruby-core@...>
Issue #20150 has been reported by peterzhu2118 (Peter Zhu).
7 messages
2024/01/04
[#116382] [Ruby master Feature#20205] Enable `frozen_string_literal` by default — "byroot (Jean Boussier) via ruby-core" <ruby-core@...>
Issue #20205 has been reported by byroot (Jean Boussier).
77 messages
2024/01/23
[ruby-core:116236] [Ruby master Feature#18057] Introduce Array#mean
From:
"matheusrich (Matheus Richard) via ruby-core" <ruby-core@...>
Date:
2024-01-16 20:10:39 UTC
List:
ruby-core #116236
Issue #18057 has been updated by matheusrich (Matheus Richard).
Was this proposal rejected?
----------------------------------------
Feature #18057: Introduce Array#mean
https://bugs.ruby-lang.org/issues/18057#change-106257
* Author: ggmichaelgo (Michael Go)
* Status: Open
* Priority: Normal
----------------------------------------
Introduce Array#average to calculate the average value of an array.
```ruby
array = [1, 2, 3]
array.mean # 2
array = [1.5, 2.2, 3.1]
array.mean(&:round) # 2.3333333333333335
array = [-3, -2, -1]
array.mean { |e| e.abs } # 2
```
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/