People
Companies
Institutions
Jobs
Q&A
News
AI Dasatoo
Log in
Home
Courses
Tutors
Books
Q&A
Ask and answer questions to make information more available to wider audiences.
Tags
Latest
Ask Question
Mark Unsere
@
unseremark8
22, May 2023 12:00 AM
return multiple values
Can a function return multiple values in F#?
answers
2
Answer 1
Noah Antills
@
noahantills
31, May 2023 12:36 PM
Example
let TupleExample a b =
let c = a+b
let d = a-b
(c, d)
let tupleValues = TupleExample 50 10
printf "%A" tupleValues
Answer 2
Lydia Leonardson
@
leonardsonlydia
31, May 2023 12:25 PM
Yes, by using a tuple, you can return multiple values in a function.