Skip to content

Commit

Permalink
Adds method to allow any Termination usage from transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
pitchart committed Dec 20, 2019
1 parent 912bfc4 commit 71e5816
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Transformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,18 @@ public function concat()
return $this->terminate(t\to_operation('.'));
}

/**
* Processes transducing with a Termination
*
* @param Termination $termination
*
* @return mixed
*/
public function into(Termination $termination)
{
return $this->terminate($termination);
}

/**
* @param callable $transducer
* @param Termination $reducer
Expand Down

0 comments on commit 71e5816

Please sign in to comment.