mkobit
01/18/2018, 2:07 AMList<Action> , where each Action is a function that is like this signature
interface Action {
fun apply(text: String): Pair<String, Boolean>
}
where the output is the new String with modifications and true if it was modified or original String and the false if it was not modified. i just need to know if any of the Action produced a new result
the input to the first action is text of a file
i want to chain the output of each function together, for example so if i have 3 `Action`s the String flows through each of them.
i was looking at http://arrow-kt.io/docs/datatypes/state/ which seems like what i should be using (like using State<String, Boolean>), but im stumbling on some of the implementation pieces, like wrapping and unwrapping the types at the boundaries and chaining the arbitrary N methods together
what is the right approach here, and anybody have some advice for getting started?