Hello I needed a function like Python's input, here is what I did, but
there is a single space when the function is called without arguments:
julia> function input(prompt::String = "")
print(prompt * " ")
chomp(readline())
end
input(generic function with 2 methods)
julia> input("Something here:")
Something here: hello
"hello"
julia> int(input("Enter a number:"))
Enter a number: 3
3
julia> typeof(ans)
Int64
julia> input() # I want ot get rid of the single space.
<--here is a sapce
"<--here is a sapce"
Is there somethign similar in Julia for this? How should I propose
inclusion of such a function to Julia?
Thanks!