8000 minor name change · Z80coder/datalog-cpp@c26c7ec · GitHub
[go: up one dir, main page]

Skip to content

Commit c26c7ec

Browse files
committed
minor name change
1 parent b8d6668 commit c26c7ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Datalog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ struct ExternalFunction {
252252
};
253253

254254
template<typename T>
255-
static ExternalFunction<T> external(
255+
static ExternalFunction<T> lambda(
256256
unique_ptr<Variable<T>>& bindVariable,
257257
typename ExternalFunction<T>::ExternalFunctionType externalFunction) {
258258
return ExternalFunction<T> {*bindVariable, externalFunction};

tests/types_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ bool test4()
267267
auto externalHeights = rule(
268268
atom<Height>(name, height),
269269
body(atom<Person>(name, age, female, country)),
270-
external(height, [&age]() { return val(age) * 3.0f; } )
270+
lambda(height, [&age]() { return val(age) * 3.0f; } )
271271
);
272272
#endif
273273

0 commit comments

Comments
 (0)
0