Name | Lislitica | Mathematica | Remark |
---|---|---|---|
Function | f(x) |
f[x] |
|
Part | [1] |
[[1]] |
Indexed |
Span | [1:2] |
[[1;;2]] |
Slice |
Association | {a:True} |
`< | "a"->True |
Curry | a.b |
a["b"] |
Prototype |
Dot | a ⋅ b |
a.b |
CenterDot(U+22C5 ) |
Lislitica | Mathematica | Remark |
---|---|---|
Scope | GeneralUtilities`Scope | |
Raw | ToExpression | Translate to Mathematica Directly |
Cases({{1, 2, 3}, a, {4, 5}}, t : {__Integer} :> t^2)
Keys({a: x, b: y, c: z})
area(square) ^= s^2
assoc.b = w
prop(a, b(c)) ^= value;
b + a.?Sin => b + Sin(a)
b + a//Sin => Sin(b + a)
Plot(
Sin(Sqrt(2)x) + Sin(x), {x, 0, 50},
MeshFunctions: {mf},
Mesh: {{0}},
MeshStyle: Directive(PointSize(Medium), Red)
)
StringJoin("abc", ABC, 123)
StringJoin[ToString /@ {"abc" <> ABC <> 123}]