fork download
  1. let rec formatEqual format string =
  2. match format with
  3. | "" -> string.Equals("")
  4. | s -> match format.Chars(0) with
  5. | string.Chars(0) -> formatEqual format.[1..] string.[1..]
  6.  
  7. let format = System.Console.ReadLine()
  8. let name = System.Console.ReadLine()
  9. let res = formatEqual format name
  10.  
  11. printfn "%b" res
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/IjoWv6/prog.fs(5,9): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (4:12). Try indenting this token further or using standard formatting conventions.

/home/IjoWv6/prog.fs(5,18): error FS0039: The field, constructor or member 'Chars' is not defined
stdout
Standard output is empty