Skip to content

Instantly share code, notes, and snippets.

@agrif
Last active December 20, 2015 11:49
Show Gist options
  • Select an option

  • Save agrif/6125991 to your computer and use it in GitHub Desktop.

Select an option

Save agrif/6125991 to your computer and use it in GitHub Desktop.
#include "cobalt.h"
#include <stdio.h>
int main(int argc, char** argv)
{
foreach(x in co_range(0, 10) as int)
{
printf("iterating %i\n", *x);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment