feat #1158: add clojure.math namespace (#1159)

This commit is contained in:
Michiel Borkent 2022-01-25 10:30:22 +01:00 committed by GitHub
parent 9930eea62c
commit c7cc5663cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,6 @@
(ns babashka.impl.clojure.math
(:require [clojure.math]
[sci.core :as sci]))
(def mns (sci/create-ns 'clojure.math nil))
(def math-namespace (sci/copy-ns clojure.math mns))

View file

@ -16,6 +16,7 @@
[babashka.impl.clojure.java.io :refer [io-namespace]]
[babashka.impl.clojure.java.shell :refer [shell-namespace]]
[babashka.impl.clojure.main :as clojure-main :refer [demunge]]
[babashka.impl.clojure.math :refer [math-namespace]]
[babashka.impl.clojure.stacktrace :refer [stacktrace-namespace]]
[babashka.impl.clojure.zip :refer [zip-namespace]]
[babashka.impl.common :as common]
@ -353,6 +354,7 @@ Use bb run --help to show this help output.
(let [opts (apply hash-map opts)]
(repl/start-repl! @common/ctx opts))) {:ns clojure-main-ns})}
'clojure.test t/clojure-test-namespace
'clojure.math math-namespace
'babashka.classpath classpath-namespace
'clojure.pprint pprint-namespace
'babashka.curl curl-namespace