Fork me on GitHub
#babashka
<
2020-11-22
>
hugo02:11:53

Is this expected?

user=> (.indexOf ["foo" "bar"] "bar")
Method indexOf on class clojure.lang.PersistentVector not allowed! [at <repl>:1:11]

borkdude08:11:51

@hybas3 Interop with clojure.lang.PersistentVector isn't available in bb, this is the reason for this messge. To save space we haven't added all of the implementation details of Clojure to bb.

👍 3
borkdude09:11:03

The babashka survey is running until December 1st. https://nl.surveymonkey.com/r/H2HK3RC After that I will analyze and publish the results. Get your feedback in while you still can!

eigenhombre17:11:40

Anyone know how to get the program name from within a Babashka program? E.g. like argv[0]. *command-line-args* is just the actual arguments. Thanks in advance!

eigenhombre18:11:26

I looked for *args* in the README, should have searched for *path* or *file*! Thanks.

borkdude18:11:36

Like in clojure *file* is the file currently being evaluated. If you have multiple files, you can also use (System/getProperty "babashka.file") which contains the file argument passed to babashka.