You have to write 2 functions that will respectively map
and filter
a linked list in the same way that streams in java.
You will have to use the following structures in your code to represent linked lists:
typedef struct node { struct node *next; int value; } node_t; typedef struct list { struct node *first; int size; } list_t;