Ad
  • Custom User Avatar
    • There is a compilaiton warning:
    /workspace/Solution.fs(15,3): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (6:3). Try indenting this token further or using standard formatting conventions. [/workspace/run.fsproj]
    
    • What is the open Microsoft.FSharp.Collections needed for?
    • Why do you need str.ToString() instead of just str?
    • what's the deal with all the if x = true then... ? Why not just if x then ...?
    • Random tests do nto generate inputs with punctuation.
  • Custom User Avatar

    Needs proper random testing, randomised order of fixed inputs is insufficient.

  • Custom User Avatar

    I added a method return type annotation.

    The translation should be ready now... I hope.

  • Custom User Avatar

    I made the sure the setup solution section does not causes compiler issues, I did this by just returning the argument because that's a string.

    Does that work?

  • Custom User Avatar

    I just updated the solution again to remove all the .[] array indexing and just used [] for F# 6.

  • Custom User Avatar

    Okay, I will remove the f# section and the tests realted to that. I will leave the working solution the same though because it's complete.

    I don't think that the scenarion is so important as to update all the rest of the languages.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution