some work on AppliedFunction ceylon/ceylon-js#196