This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-19
Channels
- # ai (4)
- # announcements (1)
- # babashka (6)
- # beginners (31)
- # biff (1)
- # calva (11)
- # cider (9)
- # clerk (6)
- # clojure (40)
- # clojure-europe (49)
- # clojure-nl (1)
- # clojure-norway (30)
- # clojurescript (17)
- # conjure (1)
- # core-async (2)
- # datalevin (28)
- # emacs (1)
- # events (4)
- # fulcro (7)
- # gratitude (1)
- # guix (4)
- # hyperfiddle (19)
- # juxt (10)
- # luminus (4)
- # malli (4)
- # missionary (11)
- # nbb (3)
- # pedestal (7)
- # reagent (27)
- # reitit (2)
- # releases (1)
- # shadow-cljs (32)
- # tools-deps (6)
- # xtdb (5)
How would I do:
var GeneralizedSuffixArray = require('mnemonist/suffix-array').GeneralizedSuffixArray;
var suffixArray = new GeneralizedSuffixArray([
'banana',
'ananas'
]);
In nbb ?I would guess
(ns your-ns
(:require ["mnemonist/suffix-array" :refer [GeneralizedSuffixArray]]))
(def suffix-array (GeneralizedSuffixArray. #js ["banana" "ananas"]))

This is a helpful reference for translating various import idioms to CLJS https://shadow-cljs.github.io/docs/UsersGuide.html#_using_npm_packages