末尾再帰最適化実装

Signed-off-by: unknown <kenichi@JIRO.dom11731a.local>