Question: How do write a haskell function in the terminal to return these types of results?? function name must be split it. thank you in advance
How do write a haskell function in the terminal to return these types of results?? function name must be split it. thank you in advance

the interpreter, you can dynamically write and run Haskell code. To test a function, simply call it by typing the name, any parameters, and press enter. In our case, that would look something like splitit [1,2,3,4] which should then return [[1,2], [3,4]]. Here are a few other test cases to try: Input Parameter Result C, 0] C, 011] Cl "Hello World!"L"Hello ", "World!"] the interpreter, you can dynamically write and run Haskell code. To test a function, simply call it by typing the name, any parameters, and press enter. In our case, that would look something like splitit [1,2,3,4] which should then return [[1,2], [3,4]]. Here are a few other test cases to try: Input Parameter Result C, 0] C, 011] Cl "Hello World!"L"Hello ", "World!"]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
