-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected repl behaviour #6
Comments
It's printing the source code of the function. The JS BQN compiler converts your code to JS code to be evaluated, and it seems there's nothing preventing that source code from just being printed. As a simpler example, try just |
Ok, fascinating, is this a user error on my end? |
There's no reason to not allow printing functions, whatever that ends up as being. It could of course be made to print something nicer, but that's probably of relatively low priority compared to other things about the language. |
Oh! I see, I am trying to call the functions, is there something obvious I'm missing to initiate that call? |
|
That makes sense, I'm coming from J and am still getting the hang of things. How do I repeat 3 "0"s and select the 2th item respectively? |
Those would be |
As a quick test, anything circled is a 2-modifier (aka conjunction; |
Ok perfect! I got my simple example working {π©βΏπ© β₯ 1βΎ π©β₯0} 3 Thank you both for the help. |
The non-array part of formatting was just casting to a string with |
I have encountered this behaviour a few times when using BQN. I will enter an expression, but instead of an output OR an error, I will see what seems to be a call graph.
For example,
{π©β0} 3
->and
2βΆ"abcdef"
->Am I missing a simple symbol for echoing / printing in these situations? I would love some clarity here.
The text was updated successfully, but these errors were encountered: