HH\Lib\Math\sum_float

Requires the Hack Standard Library to be installed.
Facebook Engineer?

This function is available as Math\sum_float() in Facebook's www repository.

Returns the float sum of the values of the given Traversable

namespace HH\Lib\Math;

function sum_float<T as num>(
  Traversable<T> $traversable,
): float;

For an integer sum, see Math\sum().

Parameters

Returns

  • float