1
I’m doing an activity, and the activity asks to call a function within another function, how can I do that?
2.10 Write a function that returns the value of a high number to the fourth power. This function must make use of another one that calculates the square of any number.
Could just do:
module Fe02 exposing (..)
import Html
funcExp x = x^4
main = Html.text (String.fromFloat (funcExp 2))
So he would give me as a result through server localhost: 16
Thank you very much ! Your reply was perfect and succinct friend. Grateful !!!!
– Fehlberg Skady
@Fehlberg, I’m glad I could help. Hug.
– user148747