0 votes
in Scala - The Diatonic Syallable by
After defining a function in the interpreter, Scala returns the following. What does the () indicate?

myfnc: ()Unit

a. The function has no side effects.

b. The function takes no parameters.

c. The function returns no value.

d. Returning unit types to the function is a closures.

1 Answer

0 votes
by
Correct answer :-  The function returns no value.

Related questions

0 votes
asked Sep 11, 2022 in Scala Constructs by sharadyadav1986
0 votes
asked Aug 13, 2022 in Scala - The Diatonic Syallable by AdilsonLima
...