2014-08-10から1日間の記事一覧

F#メモ

プログラミングF#のメモ 末尾再帰 元の関数 let factorial x = let rec tailFactorial x acc = if x <= 1 then acc else tailFactorial (x-1) (acc * x) tailFactorial x 1 ルイパンコ結果 public static class Factorial { // // Static Methods // public …