next node: StringConv,
prev node: StringMapSeq,
up to node: Subsystem Strings


StringReduce

Signature of StringReduce

List of Import References :
See BOOL
See Char
See DENOTATION
See Nat
See Option
See Seq
See String

SIGNATURE StringReduce[to]

$Date: 2010-09-30 18:24:17 +0200 (Do, 30. Sep 2010) $ ($Revision: 616 $)

-- reductions of strings

-- Parameter
SORT to

IMPORT String ONLY string       
       Char ONLY char

FUN / \ : (char ** to -> to) ** to ** string -> to              
        -- (o, e) / s
        -- reduce s from left (right) by o with value e as initial 
        -- 2nd argument.
        -- informally:
        -- (o / e)(<a, b,..., y, z>) == a o (b o (...(y o (z o e))...))
        -- (o \ e)(<a, b,..., y, z>) == z o (y o (...(b o (a o e))...))

-- old fashioned
FUN / \ : (char ** to -> to) ** to -> string -> to              
        --  (o / e)(s) == (o, e) / s


next node: StringConv,
prev node: StringMapSeq,
up to node: Subsystem Strings