Оновити 'cv4/list_ops.c'
This commit is contained in:
parent
4236c7f765
commit
036c28fcf2
@ -0,0 +1,53 @@
|
||||
#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){
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user