fork download
  1. let ReverseString (s:string) = new string(Array.rev (s.ToCharArray()))
  2.  
  3. let listOfReverseAndAdd2 =
  4. [
  5. for i in 1..10000 do
  6. if System.Int64.Parse( (ReverseString (i.ToString())))
  7. |> (+) (System.Int64.Parse(i.ToString()))
  8. |> isPalindrome //this requires a string but the above computation is returning integer. What to do?
  9. then
  10. yield(i)
  11.  
  12. ]
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/ktkNVy/prog.fs(8,12): error FS0039: The value or constructor 'isPalindrome' is not defined
stdout
Standard output is empty