@Adám, you may want to know that the method as written on APLcart doesn't output anything because you have to put something to catch the result, so e.g. (+2⎕NQ#'GetEnvironment',⊂)'DYALOG' and (⊢2⎕NQ#'GetEnvironment',⊂)'DYALOG return something but just (2⎕NQ#'GetEnvironment',⊂)'DYALOG' doesn't.
@11Kilobytes Oh, I just removed ⊢ recently, not thinking it through. Thanks. Btw, it still works without ⊢ but you can't see that it does. If you capture or use the result, it'll work just fine. (Pushed fix now.)
@Fmbalbuena Yes, but it is good training for you to figure out how to remove the parenthesis.
So dyadic ↑ is called "take" because it takes elements from the right argument. Can you guess the symbol for "drop" which drops elements from the right argument?
@Fmbalbuena Given a positive number n as left argument and a string s as right argument, check if the first n characters of s are identical to the last n characters of s.
@xpqz was carefully checking the licence on your book to make sure I could reuse the CSS you had there only to realise you started with the (little) CSS MDAPL has and that you modified 🤣
@Fmbalbuena Given a number n as left argument and a string as right argument, insert the letter 'X' after the nth character of the string. E.g. 3 and 'Hello' should give 'HelXlo'
@RGS looking more carefully, I think your custom CSS hasn't been deployed, @xpqz. Inspecting the page shows that the DejaVu font is not being used, and opening the style inspector shows that your file custom.css doesn't have the new rules.
Finally, and sorry for the third ping in a row @xpqz, I don't understand why you have a rule targeting .CodeMirror pre, given that I can't find anything with that class in the book source.
Ok, @xpqz ⊢2⎕NQ '.' 'GetEnvironment' 'DOTNET_ROOT' evaluates to '/usr/local/share/dotnet' which names a folder that contains the dotnet executable. Moreover, ⊢2⎕NQ '.' 'GetEnvironment' 'DYALOG_NETCORE' evaluates to the /string/ 1. I tried to do stuff with .NET but failed (e.g. the standard DateTime examples don't work), and I suspect it's because 'DYALOG_NETCORE' is set to a string instead of a boolean/integer. Did you have to set it to 1 (the integer) and if so, how did you do it?
Well, because Dyalog hired me ;-) and because it means I can do APL all day while earning enough to sustain my family, and because it is a nice place to work.
@11Kilobytes I’ll have a look tomorrow, but as I recall the key issues are that you must use a specific, older version of .net , and 18.1/2 beta of Dyalog.