Skip to content

Instantly share code, notes, and snippets.

@StrikingLoo
Created October 19, 2019 03:35
void* chunk_map(void* argument){
struct map_argument* arg = (struct map_argument*) argument;
for(int i = arg->from; i < arg->to; i++){
arg->results[i] = (*(arg->f))(arg->things[i]);
}
return NULL;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment