What do you prefer?

```
\a b -> (a, Just b)
```

or:

```
(. Just) . (,)
```

and why?

#Haskell #FunctionalProgramming #FP #Programming #Pointfree

I prefer the lambda version
87.9%
Pointfree or die
12.1%
Poll ended at .

What about:

```
\o -> [("#options" , toJSON o)]
```

vs:

```
pure . ("#options",) . toJSON
```

?

#Haskell #FunctionalProgramming #FP #Programming #Pointfree

lambda
63.6%
pointfree
36.4%
Poll ended at .
@user8e8f87c The pointfree variant here is not (yet?) easily comprehensible to me, probably because it combines sections of higher order operator (.) with a constructor. I know all the components needed to understand it, but I need to do too much mental gymnastics to wrap my head around it, whereas with the lambda version it's to me immediately apparent what it does.
@das_g `(. Just) . (,) $ a == (. Just) $ (,) a == (. Just) (a,) == (a,) . Just`
@user8e8f87c Is this a serious question? The first.

@kosmikus I was about to have the second one in my code, but I had mercy with my future me and decided against it.

What I like about it is that it helps my understand that `a` can be a function in:

```
a -> b == a -> (c -> d)
```

With this in mind it is not that hard to understand.