이 소스가 바로 피보나치를 구하는 코드란다 ㅋㅋㅋ

애미씨발 ㅋㅋㅋ 


#include <iostream>
#include <range/v3/all.hpp>
#include "./recursive_range.hpp"
int main()
{
using namespace ranges::view;
// Define a nullary function fibs that returns an infinite range
// that generates the Fibonacci sequence.
ranges::ext::recursive_range_fn<int> const fibs {[&]{
return concat(closed_ints(0,1), zip_with(std::plus<int>{}, fibs(), tail(fibs())));
}};
auto x = take(fibs(), 20);
ranges::for_each(x, [](int i)
{
std::cout << i << std::endl;
});
}