53 lines
946 B
C
53 lines
946 B
C
#ifndef LIST_OPS_H
|
|
#define LIST_OPS_H
|
|
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <stdbool.h>
|
|
|
|
list_t *new_list(size_t length, list_element_t elements[]){
|
|
char* list = (char*)malloc(length);
|
|
return NULL;
|
|
}
|
|
|
|
list_t *append_list(list_t *list1, list_t *list2){
|
|
return NULL;
|
|
|
|
}
|
|
|
|
list_t *filter_list(list_t *list, bool (*filter)(list_element_t)){
|
|
return NULL;
|
|
|
|
}
|
|
|
|
size_t length_list(list_t *list){
|
|
return 0;
|
|
|
|
}
|
|
|
|
list_t *map_list(list_t *list, list_element_t (*map)(list_element_t)){
|
|
return NULL;
|
|
|
|
}
|
|
|
|
list_element_t foldl_list(list_t *list, list_element_t initial,list_element_t (*foldl)(list_element_t,list_element_t)){
|
|
list_element_t res=0;
|
|
return res;
|
|
|
|
}
|
|
|
|
list_element_t foldr_list(list_t *list, list_element_t initial,list_element_t (*foldr)(list_element_t,list_element_t)){
|
|
list_element_t res=0;
|
|
return res;
|
|
|
|
}
|
|
|
|
list_t *reverse_list(list_t *list){
|
|
return NULL;
|
|
|
|
}
|
|
|
|
void delete_list(list_t *list){
|
|
|
|
}
|