Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Compose Bug #3

Closed
moonglum opened this Issue · 1 comment

2 participants

@moonglum

I ran into the following errors when running the examples from the documentation (in Safari):

var ceilMax = Udon.compose([Math.ceil, Math.max], 2);

/* ceilmax is now:

function () {
            var a2 = a1.concat(Udon._slice.call(arguments, 0));
            if (a2.length < n) {
                a2.unshift(f);
                a1 = a2;
                return accumulator;
            } else {
                return f.apply(null, a2);
            }
        }
*/

ceilMax(0.7)(1.1);
/* -> TypeError: Result of expression 'ceilMax(0.7)' [NaN] is not a function. */

ceilMax(0.7);
/* -> NaN */
@beastaugh
Owner

Looks like this is the ncurry bug in a different guise—it should be fixed now. I'm adding a regression test.

@beastaugh beastaugh closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.