Is this expected?
user=> (.indexOf ["foo" "bar"] "bar")
Method indexOf on class clojure.lang.PersistentVector not allowed! [at <repl>:1:11]
@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.
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!
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!
@eigenhombre *file*
?
I looked for *args*
in the README, should have searched for *path*
or *file*
! Thanks.
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.