« first day (2264 days earlier)      last day (390 days later) » 

3:35 PM
@roman-kashitsyn ]load expects a single object (usually just a namespace script) in .dyalog file. See docs.dyalog.com/latest/SALT%20User%20Guide.pdf
If you expect some kind of behavior that evals the APL statements in a text, use ⎕GET combined with ⎕FIX
or ⎕FX
 
 
5 hours later…
8:19 PM
Thanks, @LdBeth!

I found similar advice in https://www.dyalog.com/getting-started/tips.htm

> Load APL functions/operators/objects from plain-text files with 2⎕FIX'file:///path/file.ext'.

Unfortunately, it doesn't seem to work for my file with multiple definitions:

```
2⎕FIX 'file:///Users/lifted/Sources/Dyalog/bio.dyalog'
DOMAIN ERROR: The type of code in "/Users/lifted/Sources/Dyalog/bio.dyalog" could n
ot be inferred
```

I guess this API also expects a single object per file.
 
 
2 hours later…
10:25 PM
@RubenVerg If you don't mind creating a name, you can do f⍨g f←fexpr. If you need it often, you can define the operator S←{⍺(⍵⍵⍨⍺⍺ ⍵⍵)⍵} and write g S f
@roman-kashitsyn No, it should handle multiple objects (though there's a bug if the first one is a dfn; you can work around it by inserting a comment at the very top). If you cannot reveal the file contents here (because it is proprietary or part of the competition) you can email it to me (adam@ with the same domain name as www.dyalog.com) and I'll have a look.
 

« first day (2264 days earlier)      last day (390 days later) »