0
두 표현은 다음과 같은 출력을 생성 :에서 String.length와 연결된 문자열
> ("hello" + " " + "world!");;
val it : string = "hello world!"
> "hello" + " " + "world!";;
val it : string = "hello world!"
이유는 다음 첫 번째가 아니라 두 번째로와 String.length
작품?
> String.length ("hello" + " " + "world!");;
val it : int = 12
> String.length "hello" + " " + "world!";;
String.length "hello" + " " + "world!";;
------------------------^^^
stdin(57,25): error FS0001: The type 'string' does not match the type 'int'
이
는 FSI 14.0.22214.0