Svagt matchande rim för recursive function