Skip to content

Commit

Permalink
Using Fold instead of the monadic pipeline symbol.
Browse files Browse the repository at this point in the history
  • Loading branch information
antononcube committed Oct 25, 2017
1 parent 3e3b1fb commit 02f6778
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions MonadicProgramming/MonadicTextAnalyzer.m
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,11 @@ Mathematica is (C) Copyright 1988-2017 Wolfram Research, Inc.
sentences = context["sentences"],

True,
(* Return[
TextAMon[xs,context] ⟹ TextAMonSentences[] ⟹ TextAMonComputePOSTags[args] ]; *)
Return[
TextAMon[xs,context]TextAMonSentences[]TextAMonComputePOSTags[args] ];

Fold[ TextAMon[xs,context], {TextAMonSentences[], TextAMonComputePOSTags[args]}];
];
];

posTags =
Expand Down

0 comments on commit 02f6778

Please sign in to comment.