Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F3998702
containers-indexed-1.xreate
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
Thu, Jul 9, 12:41 AM
Size
735 B
Mime Type
text/plain
Expires
Sat, Jul 11, 12:41 AM (1 d, 8 h)
Engine
blob
Format
Raw Data
Handle
272866
Attached To
rXR Xreate
containers-indexed-1.xreate
View Options
//Expose indexes signature(anonymous):
a:: [(string, string, num)]; byName <- index(0); byCity <- index(1);
byNameAndCity <- index(0, 1).
//Expose index signature(named)
type Record =
{
name:: string,
city:: string,
age:: num
}.
b:: [Record]; byName <- index(Record.name).
//Use determined index
x = a["Rabat"]:: Record; index(byCity).
//Determined syntax(view)
viewByCity = a:: [Record]; index(byCIty).
x = viewByCity["Rabat"].
//Determined index(inline)
x = a[byCity: "Rabbat"]:: Record.
//Undefined index
x = a[{city: "Rabat"}] :: Record. <- index byCity should be deduced
x = a[{name: "Hind", city: "Rabat"}]
Event Timeline
Log In to Comment