Changeset 7788
- Timestamp:
- 10/31/05 01:06:57 (3 years ago)
- Files:
-
- 3 modified
-
docs/src/Junc.kwid (modified) (1 diff)
-
docs/src/Junc.pod (modified) (1 diff)
-
lib/pugs/hack.pod (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
docs/src/Junc.kwid
r5284 r7788 49 49 50 50 `js` and `vs` are defined by a call to `partition`, which takes a 51 list of elements and returns a list in which the first list is those52 elements which satisfied a predicate and the second list is those 53 which failed. So, `js` turns out to be all elements which are the51 list of elements and returns a pair of lists in which the first list 52 is those elements which satisfied a predicate and the second list is 53 those which failed. So, `js` turns out to be all elements which are the 54 54 same as the type we passed in and `vs` are the ones which are not the 55 55 same type. How does `sameType` work? The call to sameType is using -
docs/src/Junc.pod
r5284 r7788 49 49 50 50 C<js> and C<vs> are defined by a call to C<partition>, which takes a 51 list of elements and returns a list in which the first list is those52 elements which satisfied a predicate and the second list is those 53 which failed. So, C<js> turns out to be all elements which are the54 same as the type we passed in and C<vs> are the ones which are not the 55 same type. How does C<sameType> work? The call to sameType is using51 list of elements and returns a pair of lists in which the first list 52 is those elements which satisfied a predicate and the second list is 53 those which failed. So, C<js> turns out to be all elements which are 54 the same as the type we passed in and C<vs> are the ones which are not 55 the same type. How does C<sameType> work? The call to sameType is using 56 56 pattern matching. C<VJunc>, if you look in F<AST.hs>, is part of some 57 57 punnery being used in the C<Val> enumerated set type. VJunc is both a -
lib/pugs/hack.pod
r7597 r7788 161 161 | |-- Class-Events Redesign of Perl 5's Class::Publisher 162 162 | |-- Date Date/calendar calculations 163 | |-- Grammars Perl 6 gramm er written as Perl 6 rules163 | |-- Grammars Perl 6 grammar written as Perl 6 rules 164 164 | |-- JavaScript-FrontEnd JavaScript Frontend 165 165 | |-- org.perl6.metamodel Prototype Perl 6 metaclass model: Java
