fork download
  1. let rec formatEqual format string =
  2. match format with
  3. | "" -> string.Equals("")
  4. | s ->
  5. match formst.Chars(0) with
  6. | string.chars(0) format.[1..] string[1..]
  7.  
  8. let format = System.Console.ReadLine()
  9. let name = System.Console.ReadLine()
  10. let res = formatEqual format name
  11.  
  12. printfn "%b" res
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/7txJlR/prog.fs(5,1): error FS1161: TABs are not allowed in F# code unless the #indent "off" option is used

/home/7txJlR/prog.fs(5,2): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (3:5). Try indenting this token further or using standard formatting conventions.

/home/7txJlR/prog.fs(5,2): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (3:5). Try indenting this token further or using standard formatting conventions.

/home/7txJlR/prog.fs(6,34): error FS0010: Unexpected symbol '[' in pattern. Expected identifier, '(', '(*)' or other token.

/home/7txJlR/prog.fs(6,48): error FS0010: Unexpected symbol '..' in pattern. Expected ']' or other token.
stdout
Standard output is empty