#include namespace reanimated::css { EasingFunction steps( const std::vector &pointsX, const std::vector &pointsY) { return [=](double x) { size_t stepIdx = firstSmallerOrEqual(x, pointsX); return pointsY[stepIdx]; }; } } // namespace reanimated::css