Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Predefine do_insert instead of do_delete in erlang_extraction #348

Merged
merged 2 commits into from
Sep 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ pub fn insert(tree: GbTree(k, v), key: k, value: v) -> GbTree(k, v) {
todo
}

pub fn delete(tree: GbTree(k, v), key: k) -> GbTree(k, v) {
fn do_insert(key: k, value: v, tree: GbTree(k, v)) -> GbTree(k, v) {
todo
}

fn do_delete(key: k, tree: GbTree(k, v)) -> GbTree(k, v) {
pub fn delete(tree: GbTree(k, v), key: k) -> GbTree(k, v) {
todo
}
Loading