Skip to content

Commit

Permalink
Fix fwd bind count of just_with_default, closes #287
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobiasd committed Dec 25, 2023
1 parent 94cdfb8 commit db5bc4f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/fplus/curry_instances.autogenerated_defines
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fplus_curry_define_fn_1(xor_bools)
fplus_curry_define_fn_0(is_just)
fplus_curry_define_fn_0(is_nothing)
fplus_curry_define_fn_0(unsafe_get_just)
fplus_curry_define_fn_0(just_with_default)
fplus_curry_define_fn_1(just_with_default)
fplus_curry_define_fn_1(throw_on_nothing)
fplus_curry_define_fn_0(just)
fplus_curry_define_fn_1(as_just_if)
Expand Down
3 changes: 2 additions & 1 deletion include/fplus/fwd_instances.autogenerated_defines
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fplus_fwd_define_fn_1(xor_bools)
fplus_fwd_define_fn_0(is_just)
fplus_fwd_define_fn_0(is_nothing)
fplus_fwd_define_fn_0(unsafe_get_just)
fplus_fwd_define_fn_0(just_with_default)
fplus_fwd_define_fn_1(just_with_default)
fplus_fwd_define_fn_1(throw_on_nothing)
fplus_fwd_define_fn_0(just)
fplus_fwd_define_fn_1(as_just_if)
Expand Down Expand Up @@ -488,6 +488,7 @@ fplus_fwd_flip_define_fn_1(is_less_or_equal)
fplus_fwd_flip_define_fn_1(is_greater)
fplus_fwd_flip_define_fn_1(is_greater_or_equal)
fplus_fwd_flip_define_fn_1(xor_bools)
fplus_fwd_flip_define_fn_1(just_with_default)
fplus_fwd_flip_define_fn_1(throw_on_nothing)
fplus_fwd_flip_define_fn_1(as_just_if)
fplus_fwd_flip_define_fn_1(lift_maybe)
Expand Down
2 changes: 1 addition & 1 deletion include/fplus/maybe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ T unsafe_get_just(const maybe<T>& maybe)
}

// API search type: just_with_default : (a, Maybe a) -> a
// fwd bind count: 0
// fwd bind count: 1
// Get the value from a maybe or the default in case it is nothing.
template <typename T>
T just_with_default(const T& defaultValue, const maybe<T>& maybe)
Expand Down
7 changes: 4 additions & 3 deletions include_all_in_one/include/fplus/fplus.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2628,7 +2628,7 @@ T unsafe_get_just(const maybe<T>& maybe)
}

// API search type: just_with_default : (a, Maybe a) -> a
// fwd bind count: 0
// fwd bind count: 1
// Get the value from a maybe or the default in case it is nothing.
template <typename T>
T just_with_default(const T& defaultValue, const maybe<T>& maybe)
Expand Down Expand Up @@ -15017,7 +15017,7 @@ fplus_curry_define_fn_1(xor_bools)
fplus_curry_define_fn_0(is_just)
fplus_curry_define_fn_0(is_nothing)
fplus_curry_define_fn_0(unsafe_get_just)
fplus_curry_define_fn_0(just_with_default)
fplus_curry_define_fn_1(just_with_default)
fplus_curry_define_fn_1(throw_on_nothing)
fplus_curry_define_fn_0(just)
fplus_curry_define_fn_1(as_just_if)
Expand Down Expand Up @@ -15630,7 +15630,7 @@ fplus_fwd_define_fn_1(xor_bools)
fplus_fwd_define_fn_0(is_just)
fplus_fwd_define_fn_0(is_nothing)
fplus_fwd_define_fn_0(unsafe_get_just)
fplus_fwd_define_fn_0(just_with_default)
fplus_fwd_define_fn_1(just_with_default)
fplus_fwd_define_fn_1(throw_on_nothing)
fplus_fwd_define_fn_0(just)
fplus_fwd_define_fn_1(as_just_if)
Expand Down Expand Up @@ -16108,6 +16108,7 @@ fplus_fwd_flip_define_fn_1(is_less_or_equal)
fplus_fwd_flip_define_fn_1(is_greater)
fplus_fwd_flip_define_fn_1(is_greater_or_equal)
fplus_fwd_flip_define_fn_1(xor_bools)
fplus_fwd_flip_define_fn_1(just_with_default)
fplus_fwd_flip_define_fn_1(throw_on_nothing)
fplus_fwd_flip_define_fn_1(as_just_if)
fplus_fwd_flip_define_fn_1(lift_maybe)
Expand Down

0 comments on commit db5bc4f

Please sign in to comment.