fork download
  1. let rec formatEqual firstList secondList =
  2. match firstList with
  3. | [] -> secondList.Equals([])
  4. | h :: t ->
  5. printf "%d\n" h
  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/u5woRl/prog.fs(5,16): error FS0001: Type mismatch. Expecting a
    'a -> bool    
but given a
    'a -> unit    
The type 'bool' does not match the type 'unit'

/home/u5woRl/prog.fs(9,23): error FS0001: This expression was expected to have type
    'a list    
but here has type
    string    
stdout
Standard output is empty