This repository was archived by the owner on Jan 30, 2023. It is now read-only.
Commit 1467152
Trac #16186: extend transducers.add to arbitrary input-length
At the moment
{{{
sage: T = transducers.add([0, 1])
}}}
creates a transducer which adds the values of the input-pair. This is
now extended to arbitrary tuple-lengths.
(This came up during the review of #16142.)
Depends on #16663 in order to avoid trivial merge conflict later on.
URL: http://trac.sagemath.org/16186
Reported by: dkrenn
Ticket author(s): Clemens Heuberger, Daniel Krenn
Reviewer(s): Daniel Krenn, Clemens Heuberger1 file changed
+21
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | | - | |
| 473 | + | |
| 474 | + | |
474 | 475 | | |
475 | 476 | | |
476 | 477 | | |
| |||
479 | 480 | | |
480 | 481 | | |
481 | 482 | | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
482 | 486 | | |
483 | 487 | | |
484 | | - | |
485 | | - | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
486 | 491 | | |
487 | 492 | | |
488 | | - | |
| 493 | + | |
489 | 494 | | |
490 | 495 | | |
491 | 496 | | |
| |||
506 | 511 | | |
507 | 512 | | |
508 | 513 | | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
509 | 523 | | |
510 | | - | |
511 | | - | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
512 | 527 | | |
513 | 528 | | |
514 | 529 | | |
| |||
0 commit comments