removeBy

fun removeBy(currentStory: Map<Int, StoryStep>, predicate: (StoryStep) -> Boolean): Map<Int, StoryStep>