Sam A. Horvath-Hunt

Results 399 comments of Sam A. Horvath-Hunt

`Nullable` can't be implemented for the usual typeclass instances because you can't differentiate `null` itself, i.e. `null | null = null`. Same problem with using error unions for error handling...

Anecdotally the Haskell codebase I work on most has two usages of `flap`, one infix/flipped and one not. I'd be open to other suggestions as this has been a recurrent...

I'd love a `flapV`! I went with "V" as it sort of looks like a mirror, but any naming convention would suffice. Very much agreed on `$>` and `

FWIW there's https://samhh.github.io/fp-ts-std/modules/Array.ts.html#symmetricdifference, which goes by input order. It should be possible to make it more efficient.

For anyone wondering, the fp-ts ecosystem of libraries don't currently support ESM, instead only ES6 and CJS. When you explicitly import from `fp-ts/lib/*` you're effectively specifying that you want to...

You can't get that result from that input because it doesn't encode for fallibility, for example what if there's no `name` key at all?

There's also [@unsplash/sum-types](https://github.com/unsplash/sum-types) if you can accept the constraint of no generics.

https://gcanti.github.io/fp-ts/modules/TaskEither.ts.html#trycatch

> because function at the end of the day needs to concat elements in some specific order. Outside of typeclass methods, the type signature of a function and its documentation...

> The way I look at it is, Magma has a concept that comes with its name. By having a concrete implementation of concatAll using function, we are implicitly assuming...