starts_with

docblock
starts_with(prefix::String) -> Function

Create a selector that matches symbols starting with prefix.

Example

# Match functions like `process_data`, `process_file`
selector = starts_with("process_")
selector(:process_data)  # true
selector(:other_func)    # false