Declare parts of std in KCL rather than Rust (#5147)
Declare std in KCL
This commit is contained in:
7
src/wasm-lib/kcl/std/prelude.kcl
Normal file
7
src/wasm-lib/kcl/std/prelude.kcl
Normal file
@ -0,0 +1,7 @@
|
||||
@no_prelude
|
||||
export import * from "std::math"
|
||||
|
||||
export ZERO = 0
|
||||
export QUARTER_TURN = 90deg
|
||||
export HALF_TURN = 180deg
|
||||
export THREE_QUARTER_TURN = 270deg
|
Reference in New Issue
Block a user