-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathji.lua
More file actions
28 lines (26 loc) · 674 Bytes
/
Copy pathji.lua
File metadata and controls
28 lines (26 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
local ji = {
Class = require("ji/class"),
Deque = require("ji/deque"),
Is = require("ji/is"),
Iterators = require("ji/iterators"),
Lens = require("ji/lens"),
Math = require("ji/math"),
Object = require("ji/object"),
Set = require("ji/set"),
String = require("ji/string"),
Table = require("ji/table"),
}
function ji:export(scope)
local s = scope or _G
s.Class = ji.Class
s.Deque = ji.Deque
s.Is = ji.Is
ji.Iterators:export(s)
s.Lens = ji.Lens
ji.Math:export(scope or math)
s.Object = ji.Object
s.Set = ji.Set
ji.String:export(scope or string)
ji.Table:export(scope or table)
end
return ji