Fork me on GitHub
#beginners
<
2016-04-02
>
urbanslug03:04:22

@sveri: Yes haskell handles map well.

urbanslug03:04:31

It doesn’t change the type.

urbanslug03:04:02

Typeclasses are how it’s done.

dancrumb15:04:14

I'm having trouble getting my head around how to sensibly create recursive functions, of the form (my-fun foo bar1 bar2 bar3 bar4)

dancrumb15:04:30

Such that it would iterate over the bars

dancrumb15:04:34

If I use destructuring, i end up with a seq of the remaining bars and that means I can't use recur

dancrumb15:04:00

Am I missing something here?

dancrumb15:04:50

I've tried (apply recur...) but that's not valid

alexmiller16:04:28

You can use an explicit loop and then recur to it

mfikes17:04:15

@dancrumb: If you are not concerned with stack consumption, (apply my-fun ,,,)

dancrumb17:04:57

@mfikes that's what I'm trying to avoid

dancrumb17:04:34

I think loop is what I need

dancrumb17:04:48

Bringing the point of recursion in one level