Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F4820396
luaf.lp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Aug 24, 7:21 AM
Size
268 B
Mime Type
text/plain
Expires
Wed, Aug 26, 7:21 AM (1 d, 13 h)
Engine
blob
Format
Raw Data
Handle
277858
Attached To
rXR Xreate
luaf.lp
View Options
#begin_lua
function gcd(a, b)
if a == 0 then return b
else return gcd(b % a, a)
end
end
function rng(a, b)
r = {}
for x = a, b do
table.insert(r, x)
end
return r
end
#end_lua.
p(15,25).
gcd(X,Y,@gcd(X,Y)) :- p(X,Y).
rng(X,Y,@rng(X,Y)) :- p(X,Y).
Event Timeline
Log In to Comment