Skip to content

Add some new mutators - #13

Open
bmordue wants to merge 5 commits into
jakubsob:mainfrom
bmordue:feat/new-mutators
Open

bmordue wants to merge 5 commits into
jakubsob:mainfrom
bmordue:feat/new-mutators

Conversation

@bmordue

@bmordue bmordue commented Oct 27, 2026

Copy link
Copy Markdown

Adds a set of new mutators, presets that group them, and a convenience function that returns every mutator.

New mutators

  • Calls and arguments: drop_argument(), reverse_arguments(), remove_validation(), flip_named_flag(), replace_call_result(), remove_pipe_stage()
  • Control flow: condition_constant(), remove_else_branch(), empty_if_body(), remove_null_guard(), keep_operand(), replace_implicit_return()
  • Literals and sequences: remove_unary_minus(), integer_to_double(), double_to_integer(), numeric_replace(), seq_len_decrement(), seq_along_drop_first(), colon_start_increment(), colon_end_decrement()

New presets

function_swaps() (any/all, min/max, nrow/ncol, …), membership_operators(), operand_elision(), branch_mutations(), numeric_boundaries(), numeric_type_swaps(), sequence_mutations()

all_mutators(): Returns a flat list of every mutator, all with default arguments, for a first exploratory run. Overlapping mutators appear only once.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant