Almost periodic functions, constructively (Logical Methods in Computer Science, 2005)