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/4AJGie/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/4AJGie/prog.fs(5,46): error FS0010: Unexpected symbol '[' in pattern. Expected identifier, '(', '(*)' or other token.

/home/4AJGie/prog.fs(5,59): error FS0010: Unexpected symbol '[' in pattern. Expected identifier, '(', '(*)' or other token.
stdout
Standard output is empty