How to run function in Haskell? -
i have function, defined below
function1 :: [char] -> int function1 (x:s) | x=.........
how can call function in interpretator hugs. mean if have function
function2 :: int -> [int] function2 n | n < .........
i can call in interpretator
function2 5
for example.
thank you.
you call list of characters, known string:
function1 "foo"
Comments
Post a Comment