Actions
Feature #10068
closed[PATCH] Implement monadic operator for Vector
Description
Before
v = Vector[1, 2, 3]
+ v
=> NoMethodError: undefined method `+@' for Vector[1, 2, 3]:Vector
- v
=> NoMethodError: undefined method `-@' for Vector[1, 2, 3]:Vector
After
v = Vector[1, 2, 3]
+ v
=> Vector[1, 2, 3]
- v
=> Vector[-1, -2, -3]
Files
Updated by gogotanaka (Kazuki Tanaka) over 10 years ago
I'm sorry my report looks ugly... I fix it. ↓
Before
v = Vector[1, 2, 3]
+ v
=> NoMethodError: undefined method `+@' for Vector[1, 2, 3]:Vector
- v
=> NoMethodError: undefined method `-@' for Vector[1, 2, 3]:Vector
After
v = Vector[1, 2, 3]
+ v
=> Vector[1, 2, 3]
- v
=> Vector[-1, -2, -3]
Updated by matz (Yukihiro Matsumoto) over 10 years ago
I am not sure the term monadic is a proper one, but I like the idea.
Matz.
Updated by matz (Yukihiro Matsumoto) over 10 years ago
- Related to Feature #10069: [PATCH] Implement monadic operator for Matrix added
Updated by hsbt (Hiroshi SHIBATA) over 10 years ago
- Category set to lib
- Status changed from Open to Assigned
- Assignee set to marcandre (Marc-Andre Lafortune)
- Target version set to 2.2.0
Updated by marcandre (Marc-Andre Lafortune) about 10 years ago
- Status changed from Assigned to Closed
Done.
Thanks for catching this omission, and for the patch.
Updated by gogotanaka (Kazuki Tanaka) about 10 years ago
Thank you, too.
Actions
Like0
Like0Like0Like0Like0Like0Like0