|
Last change
on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Prototype 1.1
|
-
Property mode
set to
100644
|
|
File size:
250 bytes
|
| Rev | Line | |
|---|
| [e4c61dd] | 1 | export default function(a, b) {
|
|---|
| 2 |
|
|---|
| 3 | function compose(x, y) {
|
|---|
| 4 | return x = a(x, y), b(x[0], x[1]);
|
|---|
| 5 | }
|
|---|
| 6 |
|
|---|
| 7 | if (a.invert && b.invert) compose.invert = function(x, y) {
|
|---|
| 8 | return x = b.invert(x, y), x && a.invert(x[0], x[1]);
|
|---|
| 9 | };
|
|---|
| 10 |
|
|---|
| 11 | return compose;
|
|---|
| 12 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.