Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F3995805
examples
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
Wed, Jul 8, 4:05 AM
Size
650 B
Mime Type
text/plain
Expires
Fri, Jul 10, 4:05 AM (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
271700
Attached To
rXR Xreate
examples
View Options
1. цепочка вызовов
pow(2,3) = 2 .pow 3 = (2,3) .pow;
2. развертывание присваиваний
ArraySet a = {1, 2, 3};
BitSet a = {1, 2, 3};
HashSet a = {1, 2, 3};
function lift: SET -> ArraySet{
src -> foldl (src, include, ArraySet::EMPTY)
}
operator '=' = lift;
3. вид функции:
square: (Number, Number) -> Integer {
(15, y) -> let{x = 1, y = 1, z=3} x+ y+ z
}
{
(15, y) : let{
x = 1, y = 2, z=3
} x*y*z,
(x, 15) : x*y*z where {
x = 1, y = 2, z=3
}
}
case : let a = 16,
b= 8,
in a+b
switch (XXXX)
case (_, 18) :
Event Timeline
Log In to Comment