XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1
    • Component/s: Functor
    • Labels:
      None

      Description

      Just thought a basic ifTransformer that performs operations based on a predicate would be useful. I know this functionality can be accomplished via a switchTransformer, but sometimes it would just be easier and more clear to have an ifTransformer.

      I attached a draft of what it could look like. Let me know if this is something that should be included and I can polish it and write some tests.

        Attachments

        1. ifTransformer.patch
          6 kB
          Josh Cain
        2. ifTransformer.patch
          13 kB
          Josh Cain

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              CainJ13 Josh Cain
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: