fork download
  1. let rec formatEqual format string =
  2. match format with
  3. | "" -> string.Equals("")
  4. | s -> match format.Chars(0) with
  5. // | "?"
  6. // | "*"
  7. | c -> c.Equals(string.Chars(0)) && formatEqual format.[1..] string.[1..]
  8.  
  9. let format = System.Console.ReadLine()
  10. let name = System.Console.ReadLine()
  11. let res = formatEqual format name
  12.  
  13. printfn "%b" res
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/w3x6II/prog.fs(7,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/w3x6II/prog.fs(7,25): error FS0072: Lookup on object of indeterminate type based on information prior to this program point. A type annotation may be needed prior to this program point to constrain the type of the object. This may allow the lookup to be resolved.

/home/w3x6II/prog.fs(7,70): error FS0072: Lookup on object of indeterminate type based on information prior to this program point. A type annotation may be needed prior to this program point to constrain the type of the object. This may allow the lookup to be resolved.
stdout
Standard output is empty