Skip to content

Instantly share code, notes, and snippets.

View Matvii-Jarosh's full-sized avatar
🏠
Working from home

Matvii Jarosh Matvii-Jarosh

🏠
Working from home
  • Ukraine
  • 20:42 (UTC +03:00)
View GitHub Profile
@mattbierner
mattbierner / main.cpp
Last active April 15, 2025 09:20
C++ std::tuple cdr, car, cons
#include "tuple_ops.h"
template<typename T>
void print_tuple(const T& x)
{
std::cout << "Head:" << Car(x) << " Remaining:" << std::tuple_size<T>::value - 1 << std::endl;
}
int main(int argc, const char* argv[])
{