Enhancement request
Posted: Fri Aug 19, 2005 12:02 pm
Hi Lutz,
below a listing of small (big impact) enhancements, propably not all usefull.
and most of them are solvable with functions and mapping but perhpas the Push/Pop and random request are more instresting?
enhanced for 'CONS with ....(exp-N)
syntax: (cons exp-1 exp-2 ....exp-N)
enhancement for PUSH/POP to work with implicit Indexing (not so easy i think)
syntax: (push (a 0) (x 0 1) -1)
enhanced for difference, intersect and unique with (..list-N)
syntax: (difference (1 2 3 4 5 6 7 8) (4 3 2 1) (9 6))
enhancement for MATCH with 'intelligent matching
syntax: (match '(a ? b c * j) '( a b c d e f g h i j))
enhance for MATCH with (..list-N)
syntax: (match '(1 2 3 *) '(1 2 3 4 ?) '(1 2 3 4 5))
enhance RAND to be working on string or list directly
syntax: (rand "1234567890" 1) -> "0192837465"
syntax: (rand '( (a b) (x z) (c d) (e f) ) 1 ) -> ( (e f) (c d) (a b) (x z) )
Regards, Norman.
below a listing of small (big impact) enhancements, propably not all usefull.
and most of them are solvable with functions and mapping but perhpas the Push/Pop and random request are more instresting?
enhanced for 'CONS with ....(exp-N)
syntax: (cons exp-1 exp-2 ....exp-N)
enhancement for PUSH/POP to work with implicit Indexing (not so easy i think)
syntax: (push (a 0) (x 0 1) -1)
enhanced for difference, intersect and unique with (..list-N)
syntax: (difference (1 2 3 4 5 6 7 8) (4 3 2 1) (9 6))
enhancement for MATCH with 'intelligent matching
syntax: (match '(a ? b c * j) '( a b c d e f g h i j))
enhance for MATCH with (..list-N)
syntax: (match '(1 2 3 *) '(1 2 3 4 ?) '(1 2 3 4 5))
enhance RAND to be working on string or list directly
syntax: (rand "1234567890" 1) -> "0192837465"
syntax: (rand '( (a b) (x z) (c d) (e f) ) 1 ) -> ( (e f) (c d) (a b) (x z) )
Regards, Norman.