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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -