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

/home/zDnjCT/prog.fs(2,18): 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/zDnjCT/prog.fs(3,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/zDnjCT/prog.fs(9,79): 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