내가 이전 행 (TMP)의 목록을 사용하여, 파스칼 삼각형을 생성하기 위해 노력하고과 같이이 경우에 목록과 일치의 크기를 평가하려는 해요 :평가와 일치하지 않는 이유는 무엇입니까?
(* b is the index pos I'm generating at the moment *)
(* I need a function I can pass into another function, so the case must evaluate at runtime *)
fun b -> match b with
| 0 -> 1
| List.length tmp -> 1
| _ -> (* Ignore this part *)
을하지 않는 이유 두 번째 라인은 평가하고 일치합니까?
어떻게 표현식을 패턴으로 변환 할 수 있습니까? – Swift142