-1
목록에서 단어의 매핑을 만들고 있지만 아래 반환 값과 오류가 표시됩니다. 수동으로 추가 할 때 아무런 문제없이 Map.find
을 사용할 수 있습니다. 이런 종류의 오류에 대한 좋은 리소스가 있습니까?지도 유형 OCaml의 오류
# val word_mapping : int DictMap.t list =
[<abstr>; <abstr>; <abstr>; <abstr>; <abstr>; <abstr>; <abstr>; <abstr>;
<abstr>]
# DictMap.find "There" word_mapping;;
Error: This expression has type int DictMap.t list
but an expression was expected of type
'a DictMap.t = 'a Map.Make(String).t