Struct lamcal::HeadSpine[][src]

pub struct HeadSpine<A> { /* fields omitted */ }

Head-Spine β-reduction to head normal form.

  • Reduces the leftmost outermost redex first.
  • Performs reductions inside lambda abstractions, but only in head position.

This strategy is uniform as its definition involves no other reduction strategy.

Trait Implementations

impl<A: Default> Default for HeadSpine<A>
[src]

Returns the "default value" for a type. Read more

impl<A: Debug> Debug for HeadSpine<A>
[src]

Formats the value using the given formatter. Read more

impl<A: Clone> Clone for HeadSpine<A>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<A: Copy> Copy for HeadSpine<A>
[src]

impl<A: PartialEq> PartialEq for HeadSpine<A>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<A> BetaReduce for HeadSpine<A> where
    A: AlphaRename
[src]

Performs β-reduction allowing to inspect the current term before each contraction. Read more

Performs β-reduction on the given Term and returns the result. Read more

Performs one step of β-reduction on the given Term and returns the result. Read more

Auto Trait Implementations

impl<A> Send for HeadSpine<A> where
    A: Send

impl<A> Sync for HeadSpine<A> where
    A: Sync