File tree 2 files changed +10
-1
lines changed
symja_android_library/matheclipse-core/src
main/java/org/matheclipse/core/expression
test/java/org/matheclipse/core/system
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -286,6 +286,11 @@ public IAST fullDefinition() {
286
286
Iterator <ISymbol > iterator = symbolSet .iterator ();
287
287
while (iterator .hasNext ()) {
288
288
ISymbol symbol = iterator .next ();
289
+
290
+ IAST attributesList = AttributeFunctions .attributesList (symbol );
291
+ if (attributesList .size () > 1 ) {
292
+ fullDefinition .append (F .Set (F .Attributes (symbol ), attributesList ));
293
+ }
289
294
IAST subRules = symbol .definition ();
290
295
fullDefinition .appendArgs (subRules );
291
296
}
Original file line number Diff line number Diff line change @@ -16,14 +16,18 @@ public void testSave() {
16
16
"" );
17
17
check ("Save(temp, f)" , //
18
18
"" );
19
- check ("Clear (f,g)" , //
19
+ check ("ClearAll (f,g)" , //
20
20
"" );
21
+ check ("Attributes(f)" , //
22
+ "{}" );
21
23
check ("{f(2),g(7)}" , //
22
24
"{f(2),g(7)}" );
23
25
check ("Get(temp)" , //
24
26
"" );
25
27
check ("{f(2),g(7)}" , //
26
28
"{64,343}" );
29
+ check ("Attributes(f)" , //
30
+ "{Listable}" );
27
31
}
28
32
29
33
You can’t perform that action at this time.
0 commit comments