XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 4.1
    • Functor
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: