-
I was trying to define functors that receive ADTs as parameters and couldnt find any documentation about it.
From the tests in this repo i figured that when unpacking an ADT value in the functor im…
-
Following program is rejected by EasyCrypt with that message:
~~~
* In [lemmas or axioms]:/ [frag -1.0B])
lemma eq:
forall (M_T ={glob M_T, res}].
[critical] [: line 1 (0) to line 39 (27…
vbgl updated
4 months ago
-
I've been asserting the functor laws locally for fun and I am observing that PHPStan fails to compile on some generics.
For example, `FunctionalPHP\FantasyLand\Functor`: https://phpstan.org/r/fef7…
-
Personally I find the syntax for functors disheartening, especially when "sharing" and "where" are used. I never know how to indent, and I never find a way to make it look nice.
I think there is gen…
-
At the moment the interpreter doesn't allow users doing any operation over values inside AIR scripts. It's a really huge limitation that is partially solvable now with peer builtins, but it is not an …
-
# [definition from fantasy-land](https://github.com/fantasyland/fantasy-land#functor)
1. `u.map(a => a`) is equivalent to `u` (identity)
2. `u.map(x => f(g(x)))` is equivalent to `u.map(g).map(f)`…
-
Haskell's `Functor` class implements the functor laws.
```haskell
fmap id = id -- identity
fmap (f . g) = fmap f . fmap g -- composition
```
These laws ensure that the conta…
-
### Description
The `callOperator` fails to bind when the usage and declaration are spread across two different files. For example:
```nim
##
## myLib.nim
##
type
Functor* = ref object
…
-
The typechecker improperly rejects code when expecting a record field of type `'a. ('a, 'b) foo` when `foo` does not depend on `'a`. Here is a minimal example (by discuss user octachron) :
```ocaml
…
-
Functors like "Map" is handy, but can we make it better?
Say we have
`func Map[T any, R any](collection []T, iteratee func(T, int) R) []R`
I guess we would write code like this often.
`keys :…