-
Like a comment in the current definition [says](https://github.com/kefirjs/kefir/blob/master/src/interop/static-land.js#L27-L33), the definition is wrong:
```js
// This ap strictly speaking inco…
-
Having a look at #3 it seems the main benefit compared to `functools.singledispatch` is the ability to work on structural types.
Therefore I wonder if one can define a hierarchy of protocols via py…
-
At the moment module polymorphism is kind of clunky. Whilst our priority is more focused on polishing what we already have, it might be good to note down our thoughts here.
Some references:
- [Modula…
-
Taken from: http://learnyouahaskell.com/recursion
````
quicksort :: (Ord a) => [a] -> [a]
quicksort [] = []
quicksort (x:xs) =
let smallerSorted = quicksort [a | a
-
Requires #240.
-
I've run into a case where a String is freed before it's actually used, here's the code:
```clojure
(defn binary-partial [f x]
(fn [y]
(f x y)))
(doc lift-binary
"Lifts a binar…
-
## 🐛 Bug report
### Current Behavior
Currently the `chain` method for `getValidation` uses the `Either` instance, and this leads to conflicting semantics between `chain` and `ap`
### Expected…
lepsa updated
3 years ago
-
I've run into this in a handful of cases where I've got a contravariant applicative and I want to "map it over" a list (more accurately an indexable container like a vector). This mapping ends up depe…
-
It should be made clear when information is thrown away, for the benefit of the writer, reader and automatic code makers like exference. `forever :: IO Int -> IO ()` discards the `Int` implicitly, thi…
-
I'm struggling to understand the decoding example in the tests
```reason
let decode: Js.Json.t => Belt.Result.t(t, string) =
json => {
make
JD.intFor("userId", json)
…