-
Related to #953, #917 and #916, I wonder whether we are aware enough of the essential differences when we think of objects in a functional language:
* Mutable objects are extremely efficient, as an…
-
#### Description of the problem
Consider this code:
```coq
Require Import Coq.Lists.List.
Inductive type := NAT | LIST (t : type) | ARROW (A B : type).
Fixpoint interpt (t : type) : Set
…
-
This is not as issue per se, because impossible cases are... well, impossible.
But when you do something like
```elm
ins x y =
case x of
E -> ins x y
T _ -> ...
```
The compile…
-
Consider the program calculating `sum (map head (tails list))`. Due to the laziness, though the normal form of `tails list` has `O(n^2)` elements, I'm expecting the whole expression to cost linear tim…
-
It is quite common to pass anonymous partial function to higher-order functions (whether they take a `PartialFunction` or a regular `Function1`). In that case, there is no explicit parameter to the la…
-
(Came up in a call with @expede)
Recently a couple of concurrency issues surfaced. They stem from data races, so the root problem in these cases is that some *mutable* state is modified by multiple…
-
- [x] Discuss `discard` expression.
- [x] Discuss regions and type classes (e.g. `Functor` and `Foldable`).
- [x] Status of `Iterable` and `Iterator`
- [ ] Discuss other region topics (implicit reg…
-
Try/Success/Failure provides functional error handling, but it is bleeding into all of the function signatures because anything that calls a Try/Success/Failure becomes a Try/Success/Failure. I think …
-
## Summary
| Status | Count |
|---------------|-------|
| 🔍 Total | 735 |
| ✅ Successful | 689 |
| ⏳ Timeouts | 4 |
| 🔀 Redirected | 0 |
| 👻 Excluded | 0 |
| ❓ Unknown…
-
問題名: Persistent Queue
想定アルゴリズム: 永続 Queue、永続平衡二分木など
# 問題概要
Q 個のクエリを処理
- 0 t x: クエリ t 直後の末尾に x を追加
- 1 t: クエリ t 直後の列の先頭要素を出力し、削除
## 入力
```
Q
query_0
query_1
:
query_{Q-1}
```
## …