Very simple functions operating on C arrays to mimic functional style of programming.