I’m learning F#, and I’d like to know how a snippet like this could be written using F# only:
2.times {
puts "hello"
}
If you can explain how/if functions that take blocks are possible in F#, that would be great as well.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The times function can be written as :
and can be invoked as :