This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Main { | |
| static function main(){ | |
| var router = Paths.buildRouter(Page); | |
| var o = router(["Home"]); | |
| trace(o + " is the value for o"); | |
| var p = router(["Foo","Baz", "1"]); | |
| trace(p + " is the value for p"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static final I = x -> x; | |
| static final K = x -> y -> x; | |
| static final A = f -> x -> f(x); | |
| static final T = x -> f -> f(x); | |
| static final W = f -> x -> f(x)(x); | |
| static final C = f -> y -> x -> f(x)(y); | |
| static final B = f -> g -> x -> f(g(x)); | |
| static final S = f -> g -> x -> f(x)(g(x)); | |
| static final P = f -> g -> x -> y -> f(g(x))(g(y)); |