We are considering removing `.` as an alternative for `·` in the lambda dot notation (e.g., `(·+·)`). Reasons: - `.` is not a perfect replacement for `·` (e.g., `(·.insert ·)`) - `.` is too overloaded: `(f.x)` and `(f .x)` and `(f . x)`. We want to keep the first two.
11 lines
193 B
Text
11 lines
193 B
Text
#eval [1, 2, 3].map (·, 1)
|
|
|
|
#eval (·, ·) 1 2
|
|
|
|
#eval (·, ·, ·) 1 2 3
|
|
|
|
theorem ex1 : [1, 2, 3].map (·, 1) = [(1, 1), (2, 1), (3, 1)] :=
|
|
rfl
|
|
|
|
theorem ex2 : (·, ·) 1 2 = (1, 2) :=
|
|
rfl
|