diff --git a/README.md b/README.md index 49eb5006b..1f6a9c810 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ You can can pull it from the central Maven repositories: com.github.jlangch venice - 1.12.33 + 1.12.34 ``` diff --git a/cheatsheet.html b/cheatsheet.html index 60ba26cb8..0daa3f929 100644 --- a/cheatsheet.html +++ b/cheatsheet.html @@ -490,7 +490,7 @@
Cheat Sheet
-
VeniceV 1.12.33
+
VeniceV 1.12.34
- + Cells - + Rows - + Cols - + Write Cells - + Read Cells - + Formulas - + Styles - + Images - - Charts + + Comments + + + + + Hyperlinks + + @@ -10350,23 +10371,44 @@

Read/Write Excel files

+ Charts + + + + + + Charts Util @@ -10399,19 +10441,19 @@

True Type Fonts

-
(load-module :fonts)
+
(load-module :fonts)
- +
Download @@ -10432,11 +10474,11 @@

Test

-
(load-module :test)
+
(load-module :test)
- + - +
Define
Run @@ -10522,61 +10564,61 @@

Manages configurations with system property & env var support

-
(load-module :config)
+
(load-module :config)
- + - + - + - +
Build
File
Env
Properties @@ -10597,49 +10639,49 @@

Managing lifecycle and dependencies of components

-
(load-module :component)
+
(load-module :component)
- + - + - +
Build
Protocol
Util @@ -10660,28 +10702,28 @@

Venice application archive

-
(load-module :app)
+
(load-module :app)
- + - +
Build
Manifest @@ -10702,16 +10744,16 @@

Benchmark

-
(load-module :benchmark)
+
(load-module :benchmark)
- +
Utils @@ -10732,19 +10774,19 @@

Timing

-
(load-module :timing)
+
(load-module :timing)
- +
Timing @@ -10765,19 +10807,19 @@

Grep like search tool

-
(load-module :grep)
+
(load-module :grep)
- +
Grep @@ -10798,22 +10840,25 @@

Create, parse, and format QR references according to the Swiss payment stan -
(load-module :qrref)
+
(load-module :qrref)
- +
QR Ref @@ -10834,19 +10879,19 @@

Create and customize simple ASCII tables.

-
(load-module :ascii-table)
+
(load-module :ascii-table)
- +
Render @@ -10867,109 +10912,109 @@

Simple matrix functions. To process large matrices use the "Efficient J -
(load-module :matrix)
+
(load-module :matrix)
- + - + - + - + - + - +
Matrix
Format
Elements
Add
Remove
LinAlg @@ -10990,67 +11035,67 @@

ANSI codes, styles, and colorization helper functions

-
(load-module :ansi)
+
(load-module :ansi)
- + - + - + - +
Colors
Styles
Cursor
Progress @@ -11071,16 +11116,16 @@

Mimetypes

-
(load-module :mimetypes)
+
(load-module :mimetypes)
- +
Mimetypes @@ -11101,22 +11146,22 @@

Multipart

-
(load-module :multipart)
+
(load-module :multipart)
- +
Multipart @@ -11137,34 +11182,34 @@

Server Side Events

-
(load-module :server-side-events)
+
(load-module :server-side-events)
- + - +
Render/Parse
Read @@ -11185,67 +11230,67 @@

HTTP Client based on HttpUrlConnection (Java 8+)

-
(load-module :http-client-j8)
+
(load-module :http-client-j8)
- + - + - + - +
HTTP Client
Response
SSE
Tests @@ -11266,217 +11311,217 @@

OpenAI Client

-
(load-module :openai)
+
(load-module :openai)
- + - + - + - + - + - + - + - + - + - + - +
Chat
Chat Functions
Chat Response
Image
Audio
Files
Models
Embeddings
Assistants
Threads
Utils @@ -11497,28 +11542,28 @@

A tokenizer designed for use with OpenAI models

-
(load-module :jtokkit)
+
(load-module :jtokkit)
- +
Encoding @@ -11551,277 +11596,277 @@

Images

-
(load-module :images)
+
(load-module :images)
- + - + - + - + - + - + - + - + - + - + - + + + + + @@ -37981,6 +38097,7 @@

Function Details

(excel/add-fontwbook:header{:height12:boldtrue:italicfalse + :underlinefalse:color:BLUE})(excel/add-stylewbook:header{:font:header}) @@ -38017,7 +38134,7 @@

Function Details

-
+
excel/add-image
@@ -38073,32 +38190,32 @@

Function Details

SEE ALSO
- +
Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
- +
Render a single data item to the sheet
- +
Set a formula for a specific cell given by its row and col.
- +
Auto size the width of all columns in the sheet.
- +
Auto size the width of column col (1..n) in the sheet.
- +
Set the height of a row (1..n) in the sheet.
@@ -38108,7 +38225,7 @@

Function Details

-
+
excel/add-line-chart
@@ -38247,27 +38364,27 @@

Function Details

SEE ALSO
- +
Build a line chart data series
@@ -38277,7 +38394,7 @@

Function Details

-
+
excel/add-merge-region
@@ -38341,7 +38458,7 @@

Function Details

-
+
excel/add-pie-chart
@@ -38443,27 +38560,27 @@

Function Details

SEE ALSO
- +
Build a pie chart data series
@@ -38591,7 +38708,12 @@

Function Details

+ +
+
Add a merge region to the sheet.
@@ -38762,7 +38884,7 @@

Function Details

-
+
excel/add-text-data-validation
@@ -38821,52 +38943,52 @@

Function Details

SEE ALSO
- +
Clears the values and/or styles in a specific row in a sheet.
- +
Deletes a specific row from a sheet.
- +
Copies a specific row in a sheet.
- +
Copies a specific row from a sheet to end of the sheet.
- +
Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
- +
Render a single data item to the sheet
- +
Set a formula for a specific cell given by its row and col.
- +
Auto size the width of all columns in the sheet.
- +
Auto size the width of column col (1..n) in the sheet.
- +
Set the height of a row (1..n) in the sheet.
@@ -38876,7 +38998,74 @@

Function Details

-
+
+ +
excel/add-url-hyperlink
+ + +
+
+ + (add-url-hyperlink sheet row col text url) + +
+
+ + +
+ + + +
+
Adds an URL hyperlink to a cell
+
+ + +
+ + +
+ + (do + (load-module :excel) + (let [wbook (excel/create :xlsx) + sheet (excel/add-sheet wbook "Sheet 1")] + (excel/add-font wbook :hyperlink { :underline true + :color :BLUE }) + (excel/add-style wbook :hyperlink { :font :hyperlink }) + (excel/write-values sheet 1 1 "John" "Doe") + (excel/write-values sheet 2 1 "Sue" "Ford") + (excel/add-url-hyperlink sheet 1 3 "https://john.doe.org/" "https://john.doe.org/") + (excel/add-url-hyperlink sheet 2 3 "https://sue.ford.org/" "https://sue.ford.org/") + (excel/cell-style sheet 1 3 :hyperlink) + (excel/cell-style sheet 2 3 :hyperlink) + (excel/auto-size-columns sheet) + (excel/write->file wbook "sample.xlsx"))) + +
+ + + +
+
SEE ALSO
+ +
+ +
Remove a cell comment
+
+ +
+ +
Adds an email hyperlink to a cell
+
+ +
+ +
+ + + +
excel/addr->string
@@ -38936,12 +39125,12 @@

Function Details

SEE ALSO
- +
Returns an Excel A-style column number string representation for a column number
- +
Set a formula for a specific cell given by its row and col.
@@ -38951,7 +39140,7 @@

Function Details

-
+
excel/area-data-series
@@ -39004,7 +39193,7 @@

Function Details

SEE ALSO
@@ -39014,7 +39203,7 @@

Function Details

-
+
excel/auto-size-column
@@ -39065,32 +39254,32 @@

Function Details

SEE ALSO
- +
Auto size the width of all columns in the sheet.
- +
Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
- +
Render a single data item to the sheet
- +
Writes a value with an optional to a specific cell given by its row and col.
- +
Set a formula for a specific cell given by its row and col.
- +
Set the height of a row (1..n) in the sheet.
@@ -39100,7 +39289,7 @@

Function Details

-
+
excel/auto-size-columns
@@ -39149,32 +39338,32 @@

Function Details

SEE ALSO
- +
Auto size the width of column col (1..n) in the sheet.
- +
Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
- +
Render a single data item to the sheet
- +
Writes a value with an optional to a specific cell given by its row and col.
- +
Set a formula for a specific cell given by its row and col.
- +
Set the height of a row (1..n) in the sheet.
@@ -39184,7 +39373,7 @@

Function Details

-
+
excel/bar-data-series
@@ -39237,7 +39426,7 @@

Function Details

SEE ALSO
@@ -39247,7 +39436,7 @@

Function Details

-
+
excel/bg-color
@@ -39329,7 +39518,7 @@

Function Details

- +
Apply a defined cell style to a cell
@@ -39339,7 +39528,7 @@

Function Details

-
+
excel/cell-address-range
@@ -39377,7 +39566,7 @@

Function Details

SEE ALSO
- +
Returns the cell address in A1 style for a cell at row/col in a sheet
@@ -39387,7 +39576,7 @@

Function Details

-
+
excel/cell-data-format-string
@@ -39436,7 +39625,7 @@

Function Details

SEE ALSO
- +
Returns the sheet cell type as one of { :notfound, :blank, :string, :boolean, :numeric, :formula, :error, or :unknown } after formula ...
@@ -39446,12 +39635,12 @@

Function Details

- +
Returns true if the sheet cell is hidden else false.
- +
Returns true if the sheet cell is locked else false.
@@ -39542,12 +39731,12 @@

Function Details

SEE ALSO
- +
Returns true if the sheet cell is hidden else false.
- +
Returns true if the sheet cell is locked else false.
@@ -39592,7 +39781,7 @@

Function Details

-
+
excel/cell-formula
@@ -39666,42 +39855,42 @@

Function Details

SEE ALSO
- +
Returns an Excel A1-style cell address string representation for a row and column address
- +
Returns a sum formula for the given cell area
- +
Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
- +
Render a single data item to the sheet
- +
Writes a value with an optional to a specific cell given by its row and col.
- +
Auto size the width of all columns in the sheet.
- +
Auto size the width of column col (1..n) in the sheet.
- +
Set the height of a row (1..n) in the sheet.
@@ -39711,7 +39900,7 @@

Function Details

-
+
excel/cell-formula-result-type
@@ -39808,7 +39997,7 @@

Function Details

-
+
excel/cell-hidden?
@@ -39857,7 +40046,7 @@

Function Details

SEE ALSO
- +
Returns true if the sheet cell is locked else false.
@@ -39877,7 +40066,87 @@

Function Details

-
+
+ +
excel/cell-lock
+ + +
+
+ + (cell-lock sheet row col locked?) + +
+
+ + +
+ + + +
+
Locks/unlocks a cell.
+
Note: Excel locks new cells by default.
+
+ + +
+ + +
+ + (do + (load-module :excel) + + (let [wbook (excel/create :xlsx) + sheet (excel/add-sheet wbook "Sheet 1")] + (excel/write-values sheet 1 1 "John" "Doe" 28) + (excel/cell-lock sheet 1 1 false) + (excel/cell-lock sheet 1 2 false) + (excel/cell-lock sheet 1 3 true) + (excel/auto-size-columns sheet) + (excel/write->file wbook "sample.xlsx")) + + (let [wbook (excel/open "sample.xlsx") + sheet (excel/sheet wbook "Sheet 1")] + [(excel/cell-locked? sheet 1 1) + (excel/cell-locked? sheet 1 2) + (excel/cell-locked? sheet 1 3)])) + +
+ + + +
+
SEE ALSO
+ +
+ +
Returns true if the sheet cell is locked else false.
+
+ +
+ +
Returns true if the sheet cell is hidden else false.
+
+ +
+ +
Returns true if the sheet cell given by row/col is empty.
+
+ +
+ +
Returns the sheet cell type as one of { :notfound, :blank, :string, :boolean, :numeric, :formula, :error, or :unknown }
+
+ +
+ +
+ + + +
excel/cell-locked?
@@ -39897,6 +40166,7 @@

Function Details

Returns true if the sheet cell is locked else false.
+
Note: Excel locks new cells by default.
@@ -39911,12 +40181,17 @@

Function Details

(let [wbook (excel/create :xlsx) sheet (excel/add-sheet wbook "Sheet 1")] (excel/write-values sheet 1 1 "John" "Doe" 28) + (excel/cell-lock sheet 1 1 false) + (excel/cell-lock sheet 1 2 false) + (excel/cell-lock sheet 1 3 true) (excel/auto-size-columns sheet) (excel/write->file wbook "sample.xlsx")) (let [wbook (excel/open "sample.xlsx") sheet (excel/sheet wbook "Sheet 1")] - (excel/cell-locked? sheet 1 1))) + [(excel/cell-locked? sheet 1 1) + (excel/cell-locked? sheet 1 2) + (excel/cell-locked? sheet 1 3)]))
@@ -39926,8 +40201,8 @@

Function Details

SEE ALSO
- -
Returns true if the sheet cell is hidden else false.
+ +
Locks/unlocks a cell.
@@ -39946,7 +40221,7 @@

Function Details

-
+
excel/cell-style
@@ -40042,7 +40317,7 @@

Function Details

- +
Writes a value with an optional to a specific cell given by its row and col.
@@ -40052,7 +40327,7 @@

Function Details

-
+
excel/cell-style-info
@@ -40105,7 +40380,7 @@

Function Details

- +
Apply a defined cell style to a cell
@@ -40176,7 +40451,7 @@

Function Details

SEE ALSO
- +
Returns the sheet cell type as one of { :notfound, :blank, :string, :boolean, :numeric, :formula, :error, or :unknown } after formula ...
@@ -40186,12 +40461,12 @@

Function Details

- +
Returns true if the sheet cell is hidden else false.
- +
Returns true if the sheet cell is locked else false.
@@ -40231,7 +40506,7 @@

Function Details

-
+
excel/clear-row
@@ -40279,52 +40554,52 @@

Function Details

SEE ALSO
- +
Deletes a specific row from a sheet.
- +
Copies a specific row in a sheet.
- +
Copies a specific row from a sheet to end of the sheet.
- +
Inserts an empty row or multiple empty rows to a sheet.
- +
Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
- +
Render a single data item to the sheet
- +
Set a formula for a specific cell given by its row and col.
- +
Auto size the width of all columns in the sheet.
- +
Auto size the width of column col (1..n) in the sheet.
- +
Set the height of a row (1..n) in the sheet.
@@ -40334,7 +40609,7 @@

Function Details

-
+
excel/col->string
@@ -40374,7 +40649,7 @@

Function Details

SEE ALSO
- +
Returns an Excel A1-style cell address string representation for a row and column address
@@ -40384,7 +40659,7 @@

Function Details

-
+
excel/col-hidden?
@@ -40433,7 +40708,7 @@

Function Details

SEE ALSO
- +
Returns true if the sheet cell is locked else false.
@@ -40453,7 +40728,7 @@

Function Details

-
+
excel/col-width
@@ -40505,37 +40780,37 @@

Function Details

SEE ALSO
- +
Set the height of a row (1..n) in the sheet.
- +
Auto size the width of all columns in the sheet.
- +
Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
- +
Render a single data item to the sheet
- +
Writes a value with an optional to a specific cell given by its row and col.
- +
Set a formula for a specific cell given by its row and col.
- +
Auto size the width of column col (1..n) in the sheet.
@@ -40545,7 +40820,7 @@

Function Details

-
+
excel/copy-cell-style
@@ -40591,52 +40866,52 @@

Function Details

SEE ALSO
- +
Clears the values and/or styles in a specific row in a sheet.
- +
Deletes a specific row from a sheet.
- +
Copies a specific row in a sheet.
- +
Copies a specific row from a sheet to end of the sheet.
- +
Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
- +
Render a single data item to the sheet
- +
Set a formula for a specific cell given by its row and col.
- +
Auto size the width of all columns in the sheet.
- +
Auto size the width of column col (1..n) in the sheet.
- +
Set the height of a row (1..n) in the sheet.
@@ -40646,7 +40921,7 @@

Function Details

-
+
excel/copy-row
@@ -40694,52 +40969,52 @@

Function Details

SEE ALSO
- +
Clears the values and/or styles in a specific row in a sheet.
- +
Deletes a specific row from a sheet.
- +
Copies a specific row from a sheet to end of the sheet.
- +
Inserts an empty row or multiple empty rows to a sheet.
- +
Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
- +
Render a single data item to the sheet
- +
Set a formula for a specific cell given by its row and col.
- +
Auto size the width of all columns in the sheet.
- +
Auto size the width of column col (1..n) in the sheet.
- +
Set the height of a row (1..n) in the sheet.
@@ -40749,7 +41024,7 @@

Function Details

-
+
excel/copy-row-to-end
@@ -40797,52 +41072,52 @@

Function Details

SEE ALSO
- +
Clears the values and/or styles in a specific row in a sheet.
- +
Deletes a specific row from a sheet.
- +
Copies a specific row in a sheet.
- +
Inserts an empty row or multiple empty rows to a sheet.
- +
Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
- +
Render a single data item to the sheet
- +
Set a formula for a specific cell given by its row and col.
- +
Auto size the width of all columns in the sheet.
- +
Auto size the width of column col (1..n) in the sheet.
- +
Set the height of a row (1..n) in the sheet.
@@ -40932,7 +41207,7 @@

Function Details

-
Evaluate all formulas in the Excel.
+
Evaluate all formulas in a workbook or a sheet.
@@ -40941,7 +41216,7 @@

Function Details

-
+
excel/delete-row
@@ -40987,52 +41262,52 @@

Function Details

SEE ALSO
- +
Clears the values and/or styles in a specific row in a sheet.
- +
Copies a specific row in a sheet.
- +
Copies a specific row from a sheet to end of the sheet.
- +
Inserts an empty row or multiple empty rows to a sheet.
- +
Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
- +
Render a single data item to the sheet
- +
Set a formula for a specific cell given by its row and col.
- +
Auto size the width of all columns in the sheet.
- +
Auto size the width of column col (1..n) in the sheet.
- +
Set the height of a row (1..n) in the sheet.
@@ -41042,6 +41317,82 @@

Function Details

+
+ +
excel/evaluate-formula
+ + +
+
+ + (evaluate-formula sheet row col) + +
+
+ + +
+ + + +
+
Evaluate the formula a sheet cell.
+
+ + +
+ + +
+ + (do + (load-module :excel) + (let [data [ {:a 100 :b 200 } + {:a 101 :b 201 } + {:a 102 :b 202 } ] + wbook (excel/create :xlsx) + sheet (excel/add-sheet wbook "Sheet 1" { :no-header-row true })] + (excel/add-column sheet "A" { :field :a }) + (excel/add-column sheet "B" { :field :b }) + (excel/add-column sheet "C" { :field :c }) + (excel/write-items sheet data) + (excel/cell-formula sheet 1 3 "SUM(A1,B1)") + (excel/cell-formula sheet 2 3 "SUM(A2,B2)") + (excel/cell-formula sheet 3 3 "SUM(A3,B3)") + (excel/evaluate-formula sheet 1 3) + (excel/evaluate-formula sheet 2 3) + (excel/evaluate-formula sheet 3 3) + (excel/auto-size-columns sheet) + (excel/write->file wbook "sample.xlsx"))) + +
+ + + +
+
SEE ALSO
+ +
+ +
Evaluate all formulas in a workbook or a sheet.
+
+ +
+ +
Set a formula for a specific cell given by its row and col.
+
+ +
+ +
Remove a cell formula
+
+ +
+ +
+ + +
excel/evaluate-formulas
@@ -41050,7 +41401,7 @@

Function Details

- (evaluate-formulas it) + (evaluate-formulas wbook-or-sheet)
@@ -41061,7 +41412,7 @@

Function Details

-
Evaluate all formulas in the Excel.
+
Evaluate all formulas in a workbook or a sheet.
@@ -41090,8 +41441,18 @@

Function Details

SEE ALSO
- -
Opens an existing Excel for reading or modifying.
+ +
Evaluate the formula a sheet cell.
+
+ +
+ +
Set a formula for a specific cell given by its row and col.
+
+ +
+ +
Remove a cell formula
@@ -41100,7 +41461,7 @@

Function Details

-
+
excel/freeze-pane
@@ -41148,7 +41509,7 @@

Function Details

SEE ALSO
- +
Add a merge region to the sheet.
@@ -41158,7 +41519,7 @@

Function Details

-
+
excel/hide-columns
@@ -41224,32 +41585,32 @@

Function Details

SEE ALSO
- +
Auto size the width of column col (1..n) in the sheet.
- +
Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
- +
Render a single data item to the sheet
- +
Writes a value with an optional to a specific cell given by its row and col.
- +
Set a formula for a specific cell given by its row and col.
- +
Set the height of a row (1..n) in the sheet.
@@ -41259,7 +41620,7 @@

Function Details

-
+
excel/insert-empty-row
@@ -41307,52 +41668,52 @@

Function Details

SEE ALSO
- +
Clears the values and/or styles in a specific row in a sheet.
- +
Deletes a specific row from a sheet.
- +
Copies a specific row in a sheet.
- +
Copies a specific row from a sheet to end of the sheet.
- +
Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
- +
Render a single data item to the sheet
- +
Set a formula for a specific cell given by its row and col.
- +
Auto size the width of all columns in the sheet.
- +
Auto size the width of column col (1..n) in the sheet.
- +
Set the height of a row (1..n) in the sheet.
@@ -41362,7 +41723,7 @@

Function Details

-
+
excel/line-data-series
@@ -41426,7 +41787,7 @@

Function Details

SEE ALSO
@@ -41540,7 +41901,7 @@

Function Details

-
Evaluate all formulas in the Excel.
+
Evaluate all formulas in a workbook or a sheet.
@@ -41549,7 +41910,7 @@

Function Details

-
+
excel/pie-data-series
@@ -41598,7 +41959,7 @@

Function Details

SEE ALSO
@@ -41608,6 +41969,63 @@

Function Details

+
+ +
excel/protect-sheet
+ + +
+
+ + (protect-sheet sheet password) + +
+
+ + +
+ + + +
+
Protect the sheet.
+
This will ensure that locked cells remain locked and unlocked cells are editable.
+
+ + +
+ + +
+ + (do + (load-module :excel) + + (let [wbook (excel/create :xlsx) + sheet (excel/add-sheet wbook "Sheet 1")] + (excel/write-values sheet 1 1 "John" "Doe" 28) + (excel/auto-size-columns sheet) + (excel/protect-sheet sheet "password") + (excel/write->file wbook "sample.xlsx"))) + +
+ + + +
+
SEE ALSO
+ +
+ +
Adds a sheet with optional attributes to an Excel.
+
+ +
+ +
+ + +
excel/read-boolean-val
@@ -41692,7 +42110,7 @@

Function Details

- +
Returns the sheet cell value.
@@ -41789,7 +42207,7 @@

Function Details

- +
Returns the sheet cell value.
@@ -41886,7 +42304,7 @@

Function Details

- +
Returns the sheet cell value.
@@ -41965,8 +42383,210 @@

Function Details

- -
Returns the sheet cell value as long.
+ +
Returns the sheet cell value as long.
+
+ +
+ +
Returns the sheet cell value as a date (:java.time.LocalDate).
+
+ +
+ +
Returns the sheet cell value.
+
+ +
+ +
+ + + +
+ +
excel/read-error-code
+ + +
+
+ + (read-error-code sheet row col) + +
+
+ + +
+ + + +
+
Reads the error code from a cell. Returns a string indicating the error or nil if the cell is nozt in error state.
+
+ + +
+ + +
+ + (do + (load-module :excel) + + (defn test-xls [] + (let [wbook (excel/create :xlsx) + sheet (excel/add-sheet wbook "Data")] + (excel/write-data sheet [[100 200 {:formula "1 / 0"}]]) + (excel/write->bytebuf wbook))) + + (let [wbook (excel/open (test-xls)) + sheet (excel/sheet wbook "Data")] + (excel/evaluate-formulas wbook) + (excel/read-error-code sheet 1 3))) ;; #DIV/0! + +
+ + + +
+
SEE ALSO
+ +
+ +
Returns true if the sheet cell given by row/col is empty.
+
+ +
+ +
Returns the sheet cell type as one of { :notfound, :blank, :string, :boolean, :numeric, :formula, :error, or :unknown }
+
+ +
+ +
Returns the sheet cell value as string.
+
+ +
+ +
Returns the sheet cell value as boolean.
+
+ +
+ +
Returns the sheet cell value as long.
+
+ +
+ +
Returns the sheet cell value as double.
+
+ +
+ +
Returns the sheet cell value as a date (:java.time.LocalDate).
+
+ +
+ +
Returns the sheet cell value as a datetime (:java.time.LocalDateTime).
+
+ +
+ +
+ + + +
+ +
excel/read-long-val
+ + +
+
+ + (read-long-val sheet row col) + +
+
+ + +
+ + + +
+
Returns the sheet cell value as long.
+
+ + +
+ + +
+ + (do + (load-module :excel) + + (defn test-xls [] + (let [wbook (excel/create :xlsx) + sheet (excel/add-sheet wbook "Data")] + (excel/write-data sheet [[100 101 102]]) + (excel/write->bytebuf wbook))) + + (let [wbook (excel/open (test-xls)) + sheet (excel/sheet wbook "Data")] + (excel/read-long-val sheet 1 2))) + + (do + (load-module :excel) + + (defn test-xls [] + (let [data [ {:a 100 :b 200 } ] + wbook (excel/create :xlsx) + sheet (excel/add-sheet wbook "Data" + { :no-header-row true })] + (excel/add-column sheet "A" { :field :a }) + (excel/add-column sheet "B" { :field :b }) + (excel/write-items sheet data) + (excel/cell-formula sheet 1 3 "SUM(A1,B1)") + (excel/write->bytebuf wbook))) + + (let [wbook (excel/open (test-xls)) + sheet (excel/sheet wbook "Data")] + (excel/read-long-val sheet 1 3))) + +
+ + + +
+
SEE ALSO
+ +
+ +
Returns true if the sheet cell given by row/col is empty.
+
+ +
+ +
Returns the sheet cell type as one of { :notfound, :blank, :string, :boolean, :numeric, :formula, :error, or :unknown }
+
+ +
+ +
Returns the sheet cell value as string.
+
+ +
+ +
Returns the sheet cell value as boolean.
+
+ +
+ +
Returns the sheet cell value as double.
@@ -41975,7 +42595,12 @@

Function Details

- + +
Returns the sheet cell value as a datetime (:java.time.LocalDateTime).
+
+ +
+
Returns the sheet cell value.
@@ -41985,15 +42610,15 @@

Function Details

-
+
-
excel/read-error-code
+
excel/read-string-val
- (read-error-code sheet row col) + (read-string-val sheet row col)
@@ -42004,7 +42629,7 @@

Function Details

-
Reads the error code from a cell. Returns a string indicating the error or nil if the cell is nozt in error state.
+
Returns the sheet cell value as string.
@@ -42019,13 +42644,12 @@

Function Details

(defn test-xls [] (let [wbook (excel/create :xlsx) sheet (excel/add-sheet wbook "Data")] - (excel/write-data sheet [[100 200 {:formula "1 / 0"}]]) + (excel/write-data sheet [[100 "101" 102.0]]) (excel/write->bytebuf wbook))) (let [wbook (excel/open (test-xls)) sheet (excel/sheet wbook "Data")] - (excel/evaluate-formulas wbook) - (excel/read-error-code sheet 1 3))) ;; #DIV/0! + (excel/read-string-val sheet 1 2)))
@@ -42044,11 +42668,6 @@

Function Details

Returns the sheet cell type as one of { :notfound, :blank, :string, :boolean, :numeric, :formula, :error, or :unknown }
-
- -
Returns the sheet cell value as string.
-
-
Returns the sheet cell value as boolean.
@@ -42073,6 +42692,11 @@

Function Details

Returns the sheet cell value as a datetime (:java.time.LocalDateTime).
+ +
+ +
Returns the sheet cell value.
+
@@ -42080,15 +42704,15 @@

Function Details

-
+
-
excel/read-long-val
+
excel/read-val
- (read-long-val sheet row col) + (read-val sheet row col)
@@ -42099,7 +42723,8 @@

Function Details

-
Returns the sheet cell value as long.
+
Returns the sheet cell value.
+
Returns a
nil
,
string
,
boolean
, or
double
value depending on the cell's excel type
:blank
,
:string
,
:boolean
, or
:numeri
.
@@ -42114,30 +42739,12 @@

Function Details

(defn test-xls [] (let [wbook (excel/create :xlsx) sheet (excel/add-sheet wbook "Data")] - (excel/write-data sheet [[100 101 102]]) - (excel/write->bytebuf wbook))) - - (let [wbook (excel/open (test-xls)) - sheet (excel/sheet wbook "Data")] - (excel/read-long-val sheet 1 2))) - - (do - (load-module :excel) - - (defn test-xls [] - (let [data [ {:a 100 :b 200 } ] - wbook (excel/create :xlsx) - sheet (excel/add-sheet wbook "Data" - { :no-header-row true })] - (excel/add-column sheet "A" { :field :a }) - (excel/add-column sheet "B" { :field :b }) - (excel/write-items sheet data) - (excel/cell-formula sheet 1 3 "SUM(A1,B1)") + (excel/write-data sheet [[100 "101" 102.0]]) (excel/write->bytebuf wbook))) (let [wbook (excel/open (test-xls)) sheet (excel/sheet wbook "Data")] - (excel/read-long-val sheet 1 3))) + (excel/read-val sheet 1 2)))
@@ -42166,6 +42773,11 @@

Function Details

Returns the sheet cell value as boolean.
+
+ +
Returns the sheet cell value as long.
+
+
Returns the sheet cell value as double.
@@ -42180,11 +42792,6 @@

Function Details

Returns the sheet cell value as a datetime (:java.time.LocalDateTime).
- -
- -
Returns the sheet cell value.
-
@@ -42192,15 +42799,15 @@

Function Details

-
+
-
excel/read-string-val
+
excel/remove-comment
- (read-string-val sheet row col) + (remove-comment sheet row col)
@@ -42211,7 +42818,7 @@

Function Details

-
Returns the sheet cell value as string.
+
Remove a cell comment
@@ -42222,16 +42829,13 @@

Function Details

(do (load-module :excel) - - (defn test-xls [] - (let [wbook (excel/create :xlsx) - sheet (excel/add-sheet wbook "Data")] - (excel/write-data sheet [[100 "101" 102.0]]) - (excel/write->bytebuf wbook))) - - (let [wbook (excel/open (test-xls)) - sheet (excel/sheet wbook "Data")] - (excel/read-string-val sheet 1 2))) + (let [wbook (excel/create :xlsx) + sheet (excel/add-sheet wbook "Sheet 1")] + (excel/write-values sheet 1 1 "John" "Doe" 45) + (excel/write-values sheet 2 1 "Sue" "Ford" 26) + (excel/remove-comment sheet 1 1) + (excel/auto-size-columns sheet) + (excel/write->file wbook "sample.xlsx")))
@@ -42241,43 +42845,13 @@

Function Details

SEE ALSO
- -
Returns true if the sheet cell given by row/col is empty.
-
- -
- -
Returns the sheet cell type as one of { :notfound, :blank, :string, :boolean, :numeric, :formula, :error, or :unknown }
-
- -
- -
Returns the sheet cell value as boolean.
-
- -
- -
Returns the sheet cell value as long.
-
- -
- -
Returns the sheet cell value as double.
-
- -
- -
Returns the sheet cell value as a date (:java.time.LocalDate).
-
- -
- -
Returns the sheet cell value as a datetime (:java.time.LocalDateTime).
+ +
Remove a cell formula
- -
Returns the sheet cell value.
+ +
Remove a cell comment
@@ -42286,15 +42860,15 @@

Function Details

-
+
-
excel/read-val
+
excel/remove-formula
- (read-val sheet row col) + (remove-formula sheet row col)
@@ -42305,8 +42879,7 @@

Function Details

-
Returns the sheet cell value.
-
Returns a
nil
,
string
,
boolean
, or
double
value depending on the cell's excel type
:blank
,
:string
,
:boolean
, or
:numeri
.
+
Remove a cell formula
@@ -42317,16 +42890,22 @@

Function Details

(do (load-module :excel) - - (defn test-xls [] - (let [wbook (excel/create :xlsx) - sheet (excel/add-sheet wbook "Data")] - (excel/write-data sheet [[100 "101" 102.0]]) - (excel/write->bytebuf wbook))) - - (let [wbook (excel/open (test-xls)) - sheet (excel/sheet wbook "Data")] - (excel/read-val sheet 1 2))) + (let [data [ {:a 100 :b 200 } + {:a 101 :b 201 } + {:a 102 :b 202 } ] + wbook (excel/create :xlsx) + sheet (excel/add-sheet wbook "Sheet 1" { :no-header-row true })] + (excel/add-column sheet "A" { :field :a }) + (excel/add-column sheet "B" { :field :b }) + (excel/add-column sheet "C" { :field :c }) + (excel/write-items sheet data) + (excel/cell-formula sheet 1 3 (excel/sum-formula sheet 1 1 1 2)) + (excel/cell-formula sheet 2 3 (excel/sum-formula sheet 2 2 1 2)) + (excel/cell-formula sheet 3 3 (excel/sum-formula sheet 3 3 1 2)) + (excel/remove-formula sheet 1 3) + (excel/evaluate-formulas wbook) + (excel/auto-size-columns sheet) + (excel/write->file wbook "sample.xlsx")))
@@ -42336,43 +42915,84 @@

Function Details

SEE ALSO
- -
Returns true if the sheet cell given by row/col is empty.
-
- -
- -
Returns the sheet cell type as one of { :notfound, :blank, :string, :boolean, :numeric, :formula, :error, or :unknown }
+ +
Remove a cell comment
- -
Returns the sheet cell value as string.
+ +
Remove a cell comment
- -
- -
Returns the sheet cell value as boolean.
+ +
+ +
+ + + +
+ +
excel/remove-hyperlink
+ + +
+
+ + (remove-hyperlink sheet row col) +
+
+ + +
+ + + +
+
Remove a cell comment
+
+ + +
+ + +
+ + (do + (load-module :excel) + (let [wbook (excel/create :xlsx) + sheet (excel/add-sheet wbook "Sheet 1")] + (excel/write-values sheet 1 1 "John" "Doe" 45) + (excel/write-values sheet 2 1 "Sue" "Ford" 26) + (excel/remove-hyperlink sheet 1 1) + (excel/auto-size-columns sheet) + (excel/write->file wbook "sample.xlsx"))) + +
+ + + +
+
SEE ALSO
- -
Returns the sheet cell value as long.
+ +
Adds an URL hyperlink to a cell
- -
Returns the sheet cell value as double.
+ +
Adds an email hyperlink to a cell
- -
Returns the sheet cell value as a date (:java.time.LocalDate).
+ +
Remove a cell comment
- -
Returns the sheet cell value as a datetime (:java.time.LocalDateTime).
+ +
Remove a cell formula
@@ -42381,7 +43001,7 @@

Function Details

-
+
excel/row-height
@@ -42432,37 +43052,37 @@

Function Details

SEE ALSO
- +
Set the width of a column (1..n) in the sheet.
- +
Auto size the width of all columns in the sheet.
- +
Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
- +
Render a single data item to the sheet
- +
Writes a value with an optional to a specific cell given by its row and col.
- +
Set a formula for a specific cell given by its row and col.
- +
Auto size the width of column col (1..n) in the sheet.
@@ -42530,7 +43150,7 @@

Function Details

-
Evaluate all formulas in the Excel.
+
Evaluate all formulas in a workbook or a sheet.
@@ -42734,7 +43354,7 @@

Function Details

-
Evaluate all formulas in the Excel.
+
Evaluate all formulas in a workbook or a sheet.
@@ -42901,7 +43521,7 @@

Function Details

-
+
excel/sum-formula
@@ -42955,7 +43575,7 @@

Function Details

SEE ALSO
- +
Returns an Excel A1-style cell address string representation for a row and column address
@@ -43158,7 +43778,7 @@

Function Details

-
+
excel/write-data
@@ -43233,7 +43853,7 @@

Function Details

-
+
excel/write-item
@@ -43281,32 +43901,32 @@

Function Details

SEE ALSO
- +
Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
- +
Writes a value with an optional to a specific cell given by its row and col.
- +
Set a formula for a specific cell given by its row and col.
- +
Auto size the width of all columns in the sheet.
- +
Auto size the width of column col (1..n) in the sheet.
- +
Set the height of a row (1..n) in the sheet.
@@ -43316,7 +43936,7 @@

Function Details

-
+
excel/write-items
@@ -43346,8 +43966,8 @@

Function Details

(do (load-module :excel) - (let [data [ {:first "John" :last "Doe" :age 28 } - {:first "Sue" :last "Ford" :age 26 } ] + (let [data [ {:first "John" :last "Doe" :age 28 } + {:first "Sue" :last "Ford" :age 26 } ] wbook (excel/create :xlsx) sheet (excel/add-sheet wbook "Sheet 1")] (excel/add-column sheet "First Name" { :field :first }) @@ -43365,32 +43985,32 @@

Function Details

SEE ALSO
- +
Render a single data item to the sheet
- +
Writes a value with an optional to a specific cell given by its row and col.
- +
Set a formula for a specific cell given by its row and col.
- +
Auto size the width of all columns in the sheet.
- +
Auto size the width of column col (1..n) in the sheet.
- +
Set the height of a row (1..n) in the sheet.
@@ -43400,7 +44020,7 @@

Function Details

-
+
excel/write-value
@@ -43433,9 +44053,9 @@

Function Details

  • double: #,##0.00
  • -
  • date: d.m.yyyy
    +
  • date: dd.mm.yyyy
  • -
  • datetime: d.m.yyyy hh:mm:ss
    +
  • datetime: dd.mm.yyyy hh:mm:ss
  • @@ -43486,42 +44106,42 @@

    Function Details

    SEE ALSO
    - +
    Writes multiples value to a row starting at col and incrementing col for each value
    - +
    Writes multiples value to a row starting at col and incrementing col for each value. Keeps the existing cell styles.
    - +
    Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
    - +
    Render a single data item to the sheet
    - +
    Set a formula for a specific cell given by its row and col.
    - +
    Auto size the width of all columns in the sheet.
    - +
    Auto size the width of column col (1..n) in the sheet.
    - +
    Set the height of a row (1..n) in the sheet.
    @@ -43531,7 +44151,7 @@

    Function Details

    -
    +
    excel/write-values
    @@ -43576,42 +44196,42 @@

    Function Details

    SEE ALSO
    - +
    Writes a value with an optional to a specific cell given by its row and col.
    - +
    Writes multiples value to a row starting at col and incrementing col for each value. Keeps the existing cell styles.
    - +
    Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
    - +
    Render a single data item to the sheet
    - +
    Set a formula for a specific cell given by its row and col.
    - +
    Auto size the width of all columns in the sheet.
    - +
    Auto size the width of column col (1..n) in the sheet.
    - +
    Set the height of a row (1..n) in the sheet.
    @@ -43621,7 +44241,7 @@

    Function Details

    -
    +
    excel/write-values-keep-style
    @@ -43666,42 +44286,42 @@

    Function Details

    SEE ALSO
    - +
    Writes a value with an optional to a specific cell given by its row and col.
    - +
    Writes multiples value to a row starting at col and incrementing col for each value
    - +
    Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
    - +
    Render a single data item to the sheet
    - +
    Set a formula for a specific cell given by its row and col.
    - +
    Auto size the width of all columns in the sheet.
    - +
    Auto size the width of column col (1..n) in the sheet.
    - +
    Set the height of a row (1..n) in the sheet.
    @@ -45395,7 +46015,7 @@

    Function Details

    -
    +
    fonts/download-demo-fonts
    @@ -45477,7 +46097,7 @@

    Function Details

    SEE ALSO
    - +
    Downloads a font family from the Font Squirrel (https://www.fontsquirrel.com/) repository
    @@ -45487,7 +46107,7 @@

    Function Details

    -
    +
    fonts/download-font-family
    @@ -45608,7 +46228,7 @@

    Function Details

    SEE ALSO
    - +
    Downloads the Venice demo fonts
    @@ -48213,7 +48833,7 @@

    Function Details

    -
    +
    grep/grep
    @@ -48266,7 +48886,7 @@

    Function Details

    SEE ALSO
    - +
    Search for lines that match a regular expression in text files within ZIP files. The search chooses all files in the ZIP that match ...
    @@ -48281,7 +48901,7 @@

    Function Details

    -
    +
    grep/grep-zip
    @@ -48334,7 +48954,7 @@

    Function Details

    SEE ALSO
    - +
    Search for lines that match a regular expression in text files. The search starts from a base directory and chooses all files that ...
    @@ -48685,7 +49305,7 @@

    Function Details

    (host-address) -=> "192.168.178.27" +=> "192.168.178.35"
    @@ -48734,7 +49354,7 @@

    Function Details

    (host-name) -=> "pluto.fritz.box" +=> "Mac.fritz.box"
    @@ -48754,7 +49374,7 @@

    Function Details

    -
    +
    http-client-j8/process-server-side-events
    @@ -48850,12 +49470,12 @@

    Function Details

    SEE ALSO
    - +
    Slurps the response data from the response' input stream.
    @@ -48865,7 +49485,7 @@

    Function Details

    -
    +
    http-client-j8/send
    @@ -49114,17 +49734,17 @@

    Function Details

    SEE ALSO
    - +
    Slurps the response data from the response' input stream.
    @@ -49134,7 +49754,7 @@

    Function Details

    -
    +
    http-client-j8/slurp-response
    @@ -49253,12 +49873,12 @@

    Function Details

    SEE ALSO
    - +
    Processes server side events (SSE) and calls for every event the handler 'handler'.
    @@ -49268,7 +49888,7 @@

    Function Details

    -
    +
    http-client-j8/status-client-range?
    @@ -49307,17 +49927,17 @@

    Function Details

    SEE ALSO
    - +
    Returns true if the passed HTTP status code is in the range of the OK codes (200 ... 299) else false.
    - +
    Returns true if the passed HTTP status code is in the range of the REDIRECT codes (300 ... 399) else false.
    - +
    Returns true if the passed HTTP status code is in the range of the SERVER ERROR codes (500 ... 599) else false.
    @@ -49327,7 +49947,7 @@

    Function Details

    -
    +
    http-client-j8/status-ok-range?
    @@ -49366,17 +49986,17 @@

    Function Details

    SEE ALSO
    - +
    Returns true if the passed HTTP status code is in the range of the REDIRECT codes (300 ... 399) else false.
    - +
    Returns true if the passed HTTP status code is in the range of the CLIENT codes (400 ... 499) else false.
    - +
    Returns true if the passed HTTP status code is in the range of the SERVER ERROR codes (500 ... 599) else false.
    @@ -49386,7 +50006,7 @@

    Function Details

    -
    +
    http-client-j8/status-redirect-range?
    @@ -49425,17 +50045,17 @@

    Function Details

    SEE ALSO
    - +
    Returns true if the passed HTTP status code is in the range of the OK codes (200 ... 299) else false.
    - +
    Returns true if the passed HTTP status code is in the range of the CLIENT codes (400 ... 499) else false.
    - +
    Returns true if the passed HTTP status code is in the range of the SERVER ERROR codes (500 ... 599) else false.
    @@ -49445,7 +50065,7 @@

    Function Details

    -
    +
    http-client-j8/status-server-error-range?
    @@ -49484,17 +50104,17 @@

    Function Details

    SEE ALSO
    - +
    Returns true if the passed HTTP status code is in the range of the OK codes (200 ... 299) else false.
    - +
    Returns true if the passed HTTP status code is in the range of the REDIRECT codes (300 ... 399) else false.
    - +
    Returns true if the passed HTTP status code is in the range of the CLIENT codes (400 ... 499) else false.
    @@ -49504,7 +50124,7 @@

    Function Details

    -
    +
    http-client-j8/upload-file
    @@ -49630,12 +50250,12 @@

    Function Details

    SEE ALSO
    @@ -49645,7 +50265,7 @@

    Function Details

    -
    +
    http-client-j8/upload-multipart
    @@ -49793,12 +50413,12 @@

    Function Details

    SEE ALSO
    @@ -50062,7 +50682,7 @@

    Function Details

    -
    +
    images/alpha-channel?
    @@ -50103,7 +50723,7 @@

    Function Details

    -
    +
    images/anti-alias
    @@ -50166,47 +50786,47 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Disposes of this graphics context and releases any system resources that it is using.
    - +
    Sets a new stroke on the graphics context
    - +
    Sets the foreground color on the graphics context.
    - +
    Sets the background color on the graphics context.
    - +
    Sets the current clip to the rectangle specified by the given coordinates.
    - +
    Returns the current clip shape.
    - +
    Returns the current clip bounds as a :java.awt.Rectangle.
    @@ -50216,7 +50836,7 @@

    Function Details

    -
    +
    images/apply-ops
    @@ -50299,7 +50919,7 @@

    Function Details

    -
    +
    images/bg-color
    @@ -50345,47 +50965,47 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Disposes of this graphics context and releases any system resources that it is using.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Sets a new stroke on the graphics context
    - +
    Sets the foreground color on the graphics context.
    - +
    Sets the current clip to the rectangle specified by the given coordinates.
    - +
    Returns the current clip shape.
    - +
    Returns the current clip bounds as a :java.awt.Rectangle.
    @@ -50395,7 +51015,7 @@

    Function Details

    -
    +
    images/clear-rect
    @@ -50441,22 +51061,22 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Sets the background color on the graphics context.
    - +
    Copies an area of the component by a distance specified by dx and dy.
    @@ -50466,7 +51086,7 @@

    Function Details

    -
    +
    images/convert-to-rgb
    @@ -50511,7 +51131,7 @@

    Function Details

    SEE ALSO
    - +
    Resizes an image to a new size, a square of width and height the image should fit within the size.
    @@ -50521,7 +51141,7 @@

    Function Details

    -
    +
    images/convert-to-rgba
    @@ -50566,7 +51186,7 @@

    Function Details

    SEE ALSO
    - +
    Resizes an image to a new size, a square of width and height the image should fit within the size.
    @@ -50576,7 +51196,7 @@

    Function Details

    -
    +
    images/copy
    @@ -50618,22 +51238,22 @@

    Function Details

    SEE ALSO
    - +
    Loads an image from a :java.io.File, a :java.io.InputStream, or a :java.net.URL.
    - +
    Saves an image to 'java.io.File' or an ':java.io.OutputStream'.
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    @@ -50643,7 +51263,7 @@

    Function Details

    -
    +
    images/copy-area
    @@ -50690,17 +51310,17 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Clears the specified rectangle by filling it with the current background color.
    @@ -50710,7 +51330,7 @@

    Function Details

    -
    +
    images/create
    @@ -50759,22 +51379,22 @@

    Function Details

    SEE ALSO
    - +
    Loads an image from a :java.io.File, a :java.io.InputStream, or a :java.net.URL.
    - +
    Saves an image to 'java.io.File' or an ':java.io.OutputStream'.
    - +
    Creates a copy of :java.awt.image.BufferedImage.
    - +
    Creates a Graphics2D context from an image.
    @@ -50784,7 +51404,7 @@

    Function Details

    -
    +
    images/crop
    @@ -50826,7 +51446,7 @@

    Function Details

    -
    +
    images/dimension
    @@ -50867,7 +51487,7 @@

    Function Details

    -
    +
    images/draw-circle
    @@ -50925,57 +51545,57 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Sets a new stroke on the graphics context
    - +
    Draws a rectangle.
    - +
    Draws text with an optional size at the given position.
    - +
    Draws an image to the position x,y in the graphics context.
    @@ -50985,7 +51605,7 @@

    Function Details

    -
    +
    images/draw-image
    @@ -51042,52 +51662,52 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Draws a rectangle.
    - +
    Draws text with an optional size at the given position.
    @@ -51097,7 +51717,7 @@

    Function Details

    -
    +
    images/draw-line
    @@ -51145,57 +51765,57 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Sets a new stroke on the graphics context
    - +
    Draws a rectangle.
    - +
    Draws text with an optional size at the given position.
    - +
    Draws an image to the position x,y in the graphics context.
    @@ -51205,7 +51825,7 @@

    Function Details

    -
    +
    images/draw-oval
    @@ -51252,57 +51872,57 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Sets a new stroke on the graphics context
    - +
    Draws a rectangle.
    - +
    Draws text with an optional size at the given position.
    - +
    Draws an image to the position x,y in the graphics context.
    @@ -51312,7 +51932,7 @@

    Function Details

    -
    +
    images/draw-polygon
    @@ -51389,52 +52009,52 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Draws a rectangle.
    - +
    Draws text with an optional size at the given position.
    - +
    Draws an image to the position x,y in the graphics context.
    @@ -51444,7 +52064,7 @@

    Function Details

    -
    +
    images/draw-rect
    @@ -51493,57 +52113,57 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Sets a new stroke on the graphics context
    - +
    Draws text with an optional size at the given position.
    - +
    Draws an image to the position x,y in the graphics context.
    @@ -51553,7 +52173,7 @@

    Function Details

    -
    +
    images/draw-round-rect
    @@ -51608,57 +52228,57 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Sets a new stroke on the graphics context
    - +
    Draws a rectangle.
    - +
    Draws text with an optional size at the given position.
    - +
    Draws an image to the position x,y in the graphics context.
    @@ -51668,7 +52288,7 @@

    Function Details

    -
    +
    images/draw-string
    @@ -51718,57 +52338,57 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Sets a new stroke on the graphics context
    - +
    Draws a rectangle.
    - +
    Draws an image to the position x,y in the graphics context.
    @@ -51778,7 +52398,7 @@

    Function Details

    -
    +
    images/fg-color
    @@ -51824,47 +52444,47 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Disposes of this graphics context and releases any system resources that it is using.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Sets a new stroke on the graphics context
    - +
    Sets the foreground color on the graphics context.
    - +
    Sets the current clip to the rectangle specified by the given coordinates.
    - +
    Returns the current clip shape.
    - +
    Returns the current clip bounds as a :java.awt.Rectangle.
    @@ -51874,7 +52494,7 @@

    Function Details

    -
    +
    images/fill-circle
    @@ -51931,37 +52551,37 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Draws a filled oval.
    - +
    Draws a filled rectangle.
    - +
    Draws a filled rounded rectangle.
    - +
    Draws a filled polygon.
    @@ -51971,7 +52591,7 @@

    Function Details

    -
    +
    images/fill-oval
    @@ -52017,37 +52637,37 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Draws a filled circle.
    - +
    Draws a filled rectangle.
    - +
    Draws a filled rounded rectangle.
    - +
    Draws a filled polygon.
    @@ -52057,7 +52677,7 @@

    Function Details

    -
    +
    images/fill-polygon
    @@ -52111,37 +52731,37 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Draws a filled circle.
    - +
    Draws a filled oval.
    - +
    Draws a filled rectangle.
    - +
    Draws a filled rounded rectangle.
    @@ -52151,7 +52771,7 @@

    Function Details

    -
    +
    images/fill-rect
    @@ -52197,37 +52817,37 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Draws a filled circle.
    - +
    Draws a filled oval.
    - +
    Draws a filled rounded rectangle.
    - +
    Draws a filled polygon.
    @@ -52237,7 +52857,7 @@

    Function Details

    -
    +
    images/fill-round-rect
    @@ -52289,37 +52909,37 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Draws a filled circle.
    - +
    Draws a filled oval.
    - +
    Draws a filled rectangle.
    - +
    Draws a filled polygon.
    @@ -52329,7 +52949,7 @@

    Function Details

    -
    +
    images/flip
    @@ -52372,7 +52992,7 @@

    Function Details

    -
    +
    images/format-names
    @@ -52413,7 +53033,7 @@

    Function Details

    -
    +
    images/g2d
    @@ -52461,47 +53081,47 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Disposes of this graphics context and releases any system resources that it is using.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Sets a new stroke on the graphics context
    - +
    Sets the foreground color on the graphics context.
    - +
    Sets the background color on the graphics context.
    - +
    Sets the current clip to the rectangle specified by the given coordinates.
    - +
    Returns the current clip shape.
    - +
    Returns the current clip bounds as a :java.awt.Rectangle.
    @@ -52511,7 +53131,7 @@

    Function Details

    -
    +
    images/get-clip
    @@ -52565,47 +53185,47 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Disposes of this graphics context and releases any system resources that it is using.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Sets a new stroke on the graphics context
    - +
    Sets the foreground color on the graphics context.
    - +
    Sets the background color on the graphics context.
    - +
    Sets the current clip to the rectangle specified by the given coordinates.
    - +
    Returns the current clip bounds as a :java.awt.Rectangle.
    @@ -52615,7 +53235,7 @@

    Function Details

    -
    +
    images/get-clip-bounds
    @@ -52658,47 +53278,47 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Disposes of this graphics context and releases any system resources that it is using.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Sets a new stroke on the graphics context
    - +
    Sets the foreground color on the graphics context.
    - +
    Sets the background color on the graphics context.
    - +
    Sets the current clip to the rectangle specified by the given coordinates.
    - +
    Returns the current clip shape.
    @@ -52708,7 +53328,7 @@

    Function Details

    -
    +
    images/get-transform
    @@ -52754,42 +53374,47 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Overwrites the Transform in the Graphics2D context. 'tx' may be nil.
    - + +
    Add an affine transformer to the Graphics2D context.
    +
    + +
    +
    Create identity transformer.
    - +
    Create a translate transformer.
    - +
    Create a scale transformer.
    - +
    Create a rotate transformer.
    - +
    Create a shear transformer.
    @@ -52799,7 +53424,7 @@

    Function Details

    -
    +
    images/hexagon-poly
    @@ -52839,7 +53464,7 @@

    Function Details

    -
    +
    images/load
    @@ -52879,22 +53504,22 @@

    Function Details

    SEE ALSO
    - +
    Saves an image to 'java.io.File' or an ':java.io.OutputStream'.
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a copy of :java.awt.image.BufferedImage.
    - +
    Creates a Graphics2D context from an image.
    @@ -52904,7 +53529,7 @@

    Function Details

    -
    +
    images/pad
    @@ -52949,7 +53574,7 @@

    Function Details

    -
    +
    images/point
    @@ -52989,7 +53614,7 @@

    Function Details

    -
    +
    images/polygon
    @@ -53029,7 +53654,7 @@

    Function Details

    -
    +
    images/rectangle
    @@ -53069,7 +53694,7 @@

    Function Details

    -
    +
    images/rectangle-poly
    @@ -53109,7 +53734,7 @@

    Function Details

    -
    +
    images/resize
    @@ -53186,7 +53811,7 @@

    Function Details

    SEE ALSO
    - +
    Resizes an image to a new size, a square of width and height the image should fit within the size.
    @@ -53196,7 +53821,7 @@

    Function Details

    -
    +
    images/resize-fit
    @@ -53296,7 +53921,7 @@

    Function Details

    SEE ALSO
    - +
    Resizes an image to a new width and height.
    @@ -53306,7 +53931,7 @@

    Function Details

    -
    +
    images/rotate
    @@ -53348,7 +53973,7 @@

    Function Details

    -
    +
    images/rotate-points
    @@ -53391,7 +54016,7 @@

    Function Details

    -
    +
    images/save
    @@ -53433,27 +54058,27 @@

    Function Details

    SEE ALSO
    - +
    Loads an image from a :java.io.File, a :java.io.InputStream, or a :java.net.URL.
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a copy of :java.awt.image.BufferedImage.
    - +
    Creates a Graphics2D context from an image.
    - +
    Returns a list of format that the image writer supports.
    @@ -53463,7 +54088,7 @@

    Function Details

    -
    +
    images/scale-points
    @@ -53506,7 +54131,7 @@

    Function Details

    -
    +
    images/set-clip
    @@ -53556,47 +54181,47 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Disposes of this graphics context and releases any system resources that it is using.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Sets a new stroke on the graphics context
    - +
    Sets the foreground color on the graphics context.
    - +
    Sets the background color on the graphics context.
    - +
    Returns the current clip shape.
    - +
    Returns the current clip bounds as a :java.awt.Rectangle.
    @@ -53606,7 +54231,7 @@

    Function Details

    -
    +
    images/set-transform
    @@ -53653,42 +54278,47 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Returns a copy of the current Transform in the Graphics2D context.
    - + +
    Add an affine transformer to the Graphics2D context.
    +
    + +
    +
    Create identity transformer.
    - +
    Create a translate transformer.
    - +
    Create a scale transformer.
    - +
    Create a rotate transformer.
    - +
    Create a shear transformer.
    @@ -53698,7 +54328,7 @@

    Function Details

    -
    +
    images/shear
    @@ -53742,7 +54372,7 @@

    Function Details

    -
    +
    images/square-poly
    @@ -53782,7 +54412,7 @@

    Function Details

    -
    +
    images/stroke
    @@ -53855,47 +54485,47 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Disposes of this graphics context and releases any system resources that it is using.
    - +
    Turns anti-alias on/off on the Graphics2D context
    - +
    Sets the foreground color on the graphics context.
    - +
    Sets the background color on the graphics context.
    - +
    Sets the current clip to the rectangle specified by the given coordinates.
    - +
    Returns the current clip shape.
    - +
    Returns the current clip bounds as a :java.awt.Rectangle.
    @@ -53905,30 +54535,110 @@

    Function Details

    -
    +
    images/transform
    +
    +
    + + (transform g2d tx) + +
    +
    +
    +
    Add an affine transformer to the Graphics2D context.
    +
    Note: The last specified transform on the graphics context is applied first!
    +
    + + (do + (load-module :images) + + (let [img (images/create 400 200 images/TYPE_INT_ARGB images/white) + g (images/g2d img) + square [[-1 -1] [1 -1] [1 1] [-1 1]]] + (images/fg-color g images/blue) + (images/anti-alias g true) ;; enable anti-alias + (images/stroke g 5.0 images/cap-round images/join-miter) + (images/transform g (images/tx-translate 200 100)) + (images/transform g (images/tx-scale 15)) + (images/draw-polygon g (images/polygon square)) + + (images/dispose g) + (images/save img :png (io/file "/Users/foo/Desktop/test.png")))) + +
    + +
    +
    SEE ALSO
    + +
    + +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    +
    + +
    + +
    Creates a Graphics2D context from an image.
    +
    + +
    + +
    Overwrites the Transform in the Graphics2D context. 'tx' may be nil.
    +
    + +
    + +
    Returns a copy of the current Transform in the Graphics2D context.
    +
    + +
    + +
    Create identity transformer.
    +
    + +
    + +
    Create a translate transformer.
    +
    + +
    + +
    Create a scale transformer.
    +
    + +
    + +
    Create a rotate transformer.
    +
    + +
    + +
    Create a shear transformer.
    +
    + +
    +
    -
    +
    images/translate
    @@ -53972,7 +54682,7 @@

    Function Details

    -
    +
    images/translate-points
    @@ -54013,7 +54723,7 @@

    Function Details

    -
    +
    images/tx-identity
    @@ -54065,37 +54775,42 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Overwrites the Transform in the Graphics2D context. 'tx' may be nil.
    - +
    Returns a copy of the current Transform in the Graphics2D context.
    - + +
    Add an affine transformer to the Graphics2D context.
    +
    + +
    +
    Create a scale transformer.
    - +
    Create a rotate transformer.
    - +
    Create a shear transformer.
    @@ -54105,7 +54820,7 @@

    Function Details

    -
    +
    images/tx-rotate
    @@ -54161,42 +54876,47 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Overwrites the Transform in the Graphics2D context. 'tx' may be nil.
    - +
    Returns a copy of the current Transform in the Graphics2D context.
    - + +
    Add an affine transformer to the Graphics2D context.
    +
    + +
    +
    Create identity transformer.
    - +
    Create a translate transformer.
    - +
    Create a scale transformer.
    - +
    Create a shear transformer.
    @@ -54206,7 +54926,7 @@

    Function Details

    -
    +
    images/tx-scale
    @@ -54262,42 +54982,47 @@

    Function Details

    SEE ALSO
    - +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Overwrites the Transform in the Graphics2D context. 'tx' may be nil.
    - +
    Returns a copy of the current Transform in the Graphics2D context.
    - + +
    Add an affine transformer to the Graphics2D context.
    +
    + +
    +
    Create identity transformer.
    - +
    Create a translate transformer.
    - +
    Create a rotate transformer.
    - +
    Create a shear transformer.
    @@ -54307,7 +55032,7 @@

    Function Details

    -
    +
    images/tx-shear
    @@ -54361,140 +55086,150 @@

    Function Details

    SEE ALSO
    - + +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    +
    + +
    + +
    Creates a Graphics2D context from an image.
    +
    + +
    + +
    Overwrites the Transform in the Graphics2D context. 'tx' may be nil.
    +
    + +
    + +
    Returns a copy of the current Transform in the Graphics2D context.
    +
    + +
    + +
    Add an affine transformer to the Graphics2D context.
    +
    + +
    + +
    Create identity transformer.
    +
    + +
    + +
    Create a translate transformer.
    +
    + +
    + +
    Create a scale transformer.
    +
    + +
    + +
    Create a rotate transformer.
    +
    + +
    + +
    + + + +
    + +
    images/tx-translate
    + + +
    +
    + + (tx-translate x y) + +
    +
    + + +
    + + + +
    +
    Create a translate transformer.
    +
    Note: The last specified transform on the graphics context is applied first!
    +
    + + +
    + + +
    + + (do + (load-module :images) + + (let [img (images/create 400 200 images/TYPE_INT_ARGB images/white) + g (images/g2d img) + square [[-1 -1] [1 -1] [1 1] [-1 1]]] + (images/fg-color g images/blue) + (images/anti-alias g true) ;; enable anti-alias + (images/stroke g 5.0 images/cap-round images/join-miter) + (images/transform g (images/tx-translate 200 100)) + (images/transform g (images/tx-scale 15)) + (images/draw-polygon g (images/polygon square)) + + (images/dispose g) + (images/save img :png (io/file "/Users/foo/Desktop/test.png")))) + +
    + + + +
    +
    SEE ALSO
    + +
    +
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    - +
    Creates a Graphics2D context from an image.
    - +
    Overwrites the Transform in the Graphics2D context. 'tx' may be nil.
    - +
    Returns a copy of the current Transform in the Graphics2D context.
    - -
    Create identity transformer.
    -
    - -
    - -
    Create a translate transformer.
    + +
    Add an affine transformer to the Graphics2D context.
    - -
    Create a scale transformer.
    -
    - -
    - -
    Create a rotate transformer.
    -
    - -
    - -
    - - - -
    - -
    images/tx-translate
    - - -
    -
    - - (tx-translate x y) - -
    -
    - - -
    - - - -
    -
    Create a translate transformer.
    -
    Note: The last specified transform on the graphics context is applied first!
    -
    - - -
    - - -
    - - (do - (load-module :images) - - (let [img (images/create 400 200 images/TYPE_INT_ARGB images/white) - g (images/g2d img) - square [[-1 -1] [1 -1] [1 1] [-1 1]]] - (images/fg-color g images/blue) - (images/anti-alias g true) ;; enable anti-alias - (images/stroke g 5.0 images/cap-round images/join-miter) - (images/transform g (images/tx-translate 200 100)) - (images/transform g (images/tx-scale 15)) - (images/draw-polygon g (images/polygon square)) - - (images/dispose g) - (images/save img :png (io/file "/Users/foo/Desktop/test.png")))) - -
    - - - -
    -
    SEE ALSO
    - -
    - -
    Creates a new :java.awt.image.BufferedImage with the given width, height, and type.
    -
    - -
    - -
    Creates a Graphics2D context from an image.
    -
    - -
    - -
    Overwrites the Transform in the Graphics2D context. 'tx' may be nil.
    -
    - -
    - -
    Returns a copy of the current Transform in the Graphics2D context.
    -
    - -
    - +
    Create identity transformer.
    - +
    Create a scale transformer.
    - +
    Create a rotate transformer.
    - +
    Create a shear transformer.
    @@ -62222,7 +62957,7 @@

    Function Details

    (io/temp-dir "test-") -=> /var/folders/q0/gg9f6pqx5079cfvp9g5lqbzh0000gn/T/test-65973376429625779 +=> /var/folders/q0/gg9f6pqx5079cfvp9g5lqbzh0000gn/T/test-5278568948843304235
    @@ -64662,10 +65397,10 @@

    Function Details

    (java-package-version :java.lang.String) -=> {:implementation-title "Java Runtime Environment" :implementation-vendor "Azul Systems, Inc." :implementation-version "1.8.0_392" :specification-title "Java Platform API Specification" :specification-vendor "Oracle Corporation" :specification-version "1.8"} +=> {:implementation-title "Java Runtime Environment" :implementation-vendor "Azul Systems, Inc." :implementation-version "1.8.0_422" :specification-title "Java Platform API Specification" :specification-vendor "Oracle Corporation" :specification-version "1.8"} (java-package-version (class :java.lang.String)) -=> {:implementation-title "Java Runtime Environment" :implementation-vendor "Azul Systems, Inc." :implementation-version "1.8.0_392" :specification-title "Java Platform API Specification" :specification-vendor "Oracle Corporation" :specification-version "1.8"} +=> {:implementation-title "Java Runtime Environment" :implementation-vendor "Azul Systems, Inc." :implementation-version "1.8.0_422" :specification-title "Java Platform API Specification" :specification-vendor "Oracle Corporation" :specification-version "1.8"}
    @@ -64841,7 +65576,7 @@

    Function Details

    (java-version) -=> "1.8.0_392" +=> "1.8.0_422"
    @@ -64895,7 +65630,7 @@

    Function Details

    (java-version-info) -=> {:version "1.8.0_392" :vendor "Azul Systems, Inc." :vm-version "25.392-b08" :vm-name "OpenJDK 64-Bit Server VM" :vm-vendor "Azul Systems, Inc."} +=> {:version "1.8.0_422" :vendor "Azul Systems, Inc." :vm-version "25.422-b05" :vm-name "OpenJDK 64-Bit Server VM" :vm-vendor "Azul Systems, Inc."}
    @@ -71759,7 +72494,7 @@

    Function Details

    :c (decimal v) v)) :filter-fn #(= 100 (:a %)))))) -=> ({:a 100 :b 2024-09-06T18:27:05.263 :c 10.12M} {:a 100 :b 2024-09-08T18:27:05.263 :c 30.12M}) +=> ({:a 100 :b 2024-10-11T12:26:56.478 :c 10.12M} {:a 100 :b 2024-10-13T12:26:56.478 :c 30.12M})
    @@ -72103,7 +72838,7 @@

    Function Details

    -
    +
    jtokkit/count-tokens
    @@ -72144,22 +72879,22 @@

    Function Details

    SEE ALSO
    - +
    Returns the encoding with the given encoding or model type returns nil
    - +
    Returns the defined encoding types. Actually from the enum type :com.knuddels.jtokkit.api.EncodingType.
    - +
    Returns the defined model types. Actually from the enum type :com.knuddels.jtokkit.api.ModelType.
    - +
    Encodes the given text into a list of token ids.
    @@ -72169,7 +72904,7 @@

    Function Details

    -
    +
    jtokkit/encode
    @@ -72210,22 +72945,22 @@

    Function Details

    SEE ALSO
    - +
    Returns the encoding with the given encoding or model type returns nil
    - +
    Returns the defined encoding types. Actually from the enum type :com.knuddels.jtokkit.api.EncodingType.
    - +
    Returns the defined model types. Actually from the enum type :com.knuddels.jtokkit.api.ModelType.
    - +
    Encodes the given text into a list of token ids and returns the number of tokens.
    @@ -72235,7 +72970,7 @@

    Function Details

    -
    +
    jtokkit/encoding
    @@ -72281,22 +73016,22 @@

    Function Details

    SEE ALSO
    - +
    Encodes the given text into a list of token ids.
    - +
    Returns the defined encoding types. Actually from the enum type :com.knuddels.jtokkit.api.EncodingType.
    - +
    Returns the defined model types. Actually from the enum type :com.knuddels.jtokkit.api.ModelType.
    - +
    Encodes the given text into a list of token ids and returns the number of tokens.
    @@ -72306,7 +73041,7 @@

    Function Details

    -
    +
    jtokkit/encoding-types
    @@ -72346,12 +73081,12 @@

    Function Details

    SEE ALSO
    - +
    Encodes the given text into a list of token ids.
    - +
    Returns the defined model types. Actually from the enum type :com.knuddels.jtokkit.api.ModelType.
    @@ -72361,7 +73096,7 @@

    Function Details

    -
    +
    jtokkit/model-types
    @@ -72401,12 +73136,12 @@

    Function Details

    SEE ALSO
    - +
    Encodes the given text into a list of token ids.
    - +
    Returns the defined encoding types. Actually from the enum type :com.knuddels.jtokkit.api.EncodingType.
    @@ -73247,7 +73982,7 @@

    Function Details

    (->> (lazy-seq rand-long) (take 4) (doall)) -=> (8163131616533453979 582254473997449100 1070197861673305068 3939523899330607942) +=> (8717959892196585935 8305440634616239510 5532535398509410391 7770213043338594454) ; lazy sequence with a constant value (->> (lazy-seq (constantly 5)) @@ -77024,7 +77759,7 @@

    Function Details

    -
    +
    matrix/add-column-at-end
    @@ -77069,7 +77804,7 @@

    Function Details

    -
    +
    matrix/add-column-at-start
    @@ -77114,7 +77849,7 @@

    Function Details

    -
    +
    matrix/add-row-at-end
    @@ -77160,7 +77895,7 @@

    Function Details

    -
    +
    matrix/add-row-at-start
    @@ -77206,7 +77941,7 @@

    Function Details

    -
    +
    matrix/assoc-element
    @@ -77247,7 +77982,7 @@

    Function Details

    -
    +
    matrix/column
    @@ -77288,7 +78023,7 @@

    Function Details

    -
    +
    matrix/columns
    @@ -77330,7 +78065,7 @@

    Function Details

    -
    +
    matrix/element
    @@ -77371,7 +78106,7 @@

    Function Details

    -
    +
    matrix/empty?
    @@ -77412,7 +78147,7 @@

    Function Details

    -
    +
    matrix/format
    @@ -77477,7 +78212,7 @@

    Function Details

    -
    +
    matrix/remove-column
    @@ -77518,7 +78253,7 @@

    Function Details

    -
    +
    matrix/remove-row
    @@ -77559,7 +78294,7 @@

    Function Details

    -
    +
    matrix/row
    @@ -77600,7 +78335,7 @@

    Function Details

    -
    +
    matrix/rows
    @@ -77642,7 +78377,7 @@

    Function Details

    -
    +
    matrix/transpose
    @@ -77688,7 +78423,7 @@

    Function Details

    -
    +
    matrix/validate
    @@ -77739,7 +78474,7 @@

    Function Details

    -
    +
    matrix/vector2d
    @@ -78793,7 +79528,7 @@

    Function Details

    :else (+ (fibonacci (- n 1)) (fibonacci (- n 2))))))) (time (fibonacci 25))) -Elapsed time: 813.33µs +Elapsed time: 940.83µs => 75025 (do @@ -79098,7 +79833,7 @@

    Function Details

    -
    +
    mimetypes/probe-content-type
    @@ -79443,7 +80178,7 @@

    Function Details

    -
    +
    multipart/http-content-type-header
    @@ -79486,12 +80221,12 @@

    Function Details

    SEE ALSO
    - +
    Renders a map of named parts as multipart/form-data format.
    - +
    Parses a multipart bytebuf.
    @@ -79501,7 +80236,7 @@

    Function Details

    -
    +
    multipart/parse
    @@ -79564,12 +80299,12 @@

    Function Details

    SEE ALSO
    - +
    Renders a map of named parts as multipart/form-data format.
    - +
    Returns the HTTP content type header value for multipart/form-data HTTP requests.
    @@ -79579,7 +80314,7 @@

    Function Details

    -
    +
    multipart/render
    @@ -79673,12 +80408,12 @@

    Function Details

    SEE ALSO
    - +
    Parses a multipart bytebuf.
    - +
    Returns the HTTP content type header value for multipart/form-data HTTP requests.
    @@ -80288,13 +81023,13 @@

    Function Details

    (nano-time) -=> 665504382218208 +=> 64389722079708 (let [t (nano-time) _ (sleep 100) e (nano-time)] (format-nano-time (- e t) :precision 2)) -=> "103.07ms" +=> "105.04ms"
    @@ -82205,7 +82940,7 @@

    Function Details

    -
    +
    openai/assert-response-http-ok
    @@ -82238,7 +82973,7 @@

    Function Details

    -
    +
    openai/assistant-create
    @@ -82366,22 +83101,22 @@

    Function Details

    SEE ALSO
    - +
    Create an assistant with a model and instructions.
    - +
    Returns a list of assistants.
    @@ -82391,7 +83126,7 @@

    Function Details

    -
    +
    openai/assistant-delete
    @@ -82491,22 +83226,22 @@

    Function Details

    SEE ALSO
    - +
    Create an assistant with a model and instructions.
    - +
    Returns a list of assistants.
    @@ -82516,7 +83251,7 @@

    Function Details

    -
    +
    openai/assistant-list
    @@ -82631,22 +83366,22 @@

    Function Details

    SEE ALSO
    - +
    Create an assistant with a model and instructions.
    - +
    Returns a list of assistants.
    @@ -82656,7 +83391,7 @@

    Function Details

    -
    +
    openai/assistant-modify
    @@ -82791,22 +83526,22 @@

    Function Details

    SEE ALSO
    - +
    Create an assistant with a model and instructions.
    - +
    Returns a list of assistants.
    @@ -82816,7 +83551,7 @@

    Function Details

    -
    +
    openai/assistant-retrieve
    @@ -82916,22 +83651,22 @@

    Function Details

    SEE ALSO
    - +
    Create an assistant with a model and instructions.
    - +
    Returns a list of assistants.
    @@ -82941,7 +83676,7 @@

    Function Details

    -
    +
    openai/audio-file-ext
    @@ -83030,7 +83765,7 @@

    Function Details

    -
    +
    openai/audio-speech-generate
    @@ -83188,17 +83923,17 @@

    Function Details

    SEE ALSO
    - +
    Transcribes audio into the input language.
    - +
    Returns the file extension for an audio mimetype.
    @@ -83208,7 +83943,7 @@

    Function Details

    -
    +
    openai/audio-speech-transcribe
    @@ -83388,17 +84123,17 @@

    Function Details

    SEE ALSO
    - +
    Generates audio from the input text.
    - +
    Returns the file extension for an audio mimetype.
    @@ -83408,7 +84143,7 @@

    Function Details

    -
    +
    openai/audio-speech-translate
    @@ -83565,17 +84300,17 @@

    Function Details

    SEE ALSO
    - +
    Generates audio from the input text.
    - +
    Transcribes audio into the input language.
    - +
    Returns the file extension for an audio mimetype.
    @@ -83585,7 +84320,7 @@

    Function Details

    -
    +
    openai/chat-completion
    @@ -83811,17 +84546,17 @@

    Function Details

    SEE ALSO
    - +
    Runs a chat completion in streaming mode.
    - +
    Returns a pretty printed Venice JSON data value.
    @@ -83831,7 +84566,7 @@

    Function Details

    -
    +
    openai/chat-completion-streaming
    @@ -84033,12 +84768,12 @@

    Function Details

    SEE ALSO
    - +
    Processes OpenAI server side events (SSE) and calls for every event the passed handler function.
    @@ -84048,7 +84783,7 @@

    Function Details

    -
    +
    openai/chat-extract-function-name
    @@ -84082,22 +84817,22 @@

    Function Details

    SEE ALSO
    - +
    Returns the message of an OpenAI chat JSON response.
    - +
    Returns the message "tool_calls" id of an OpenAI chat JSON response.
    @@ -84107,7 +84842,7 @@

    Function Details

    -
    +
    openai/chat-extract-response-message
    @@ -84141,27 +84876,27 @@

    Function Details

    SEE ALSO
    - +
    Returns the message of an OpenAI chat JSON response.
    - +
    Returns the message "tool_calls" id of an OpenAI chat JSON response.
    - +
    Returns the function name of an OpenAI chat JSON response.
    @@ -84171,7 +84906,7 @@

    Function Details

    -
    +
    openai/chat-extract-response-message-content
    @@ -84205,22 +84940,22 @@

    Function Details

    SEE ALSO
    - +
    Returns the message of an OpenAI chat JSON response.
    - +
    Returns the message "tool_calls" id of an OpenAI chat JSON response.
    - +
    Returns the function name of an OpenAI chat JSON response.
    @@ -84230,7 +84965,7 @@

    Function Details

    -
    +
    openai/chat-extract-response-message-role
    @@ -84264,22 +84999,22 @@

    Function Details

    SEE ALSO
    - +
    Returns the message of an OpenAI chat JSON response.
    - +
    Returns the message "tool_calls" id of an OpenAI chat JSON response.
    - +
    Returns the function name of an OpenAI chat JSON response.
    @@ -84289,7 +85024,7 @@

    Function Details

    -
    +
    openai/chat-extract-response-tool-calls-id
    @@ -84323,22 +85058,22 @@

    Function Details

    SEE ALSO
    - +
    Returns the message of an OpenAI chat JSON response.
    - +
    Returns the function name of an OpenAI chat JSON response.
    @@ -84348,7 +85083,7 @@

    Function Details

    -
    +
    openai/chat-finish-reason
    @@ -84383,17 +85118,17 @@

    Function Details

    SEE ALSO
    - +
    Returns true if the OpenAI JSON response provides an answer to the prompt.
    - +
    Returns true if the OpenAI JSON response contains tool calls (functions) that it wants the client to run
    - +
    Execute all functions from an OpenAI JSON response.
    @@ -84403,7 +85138,7 @@

    Function Details

    -
    +
    openai/chat-finish-reason-stop?
    @@ -84437,17 +85172,17 @@

    Function Details

    SEE ALSO
    - +
    Returns the finish reason text from an OpenAI JSON response.
    - +
    Returns true if the OpenAI JSON response contains tool calls (functions) that it wants the client to run
    - +
    Execute all functions from an OpenAI JSON response.
    @@ -84457,7 +85192,7 @@

    Function Details

    -
    +
    openai/chat-finish-reason-tool-calls?
    @@ -84491,17 +85226,17 @@

    Function Details

    SEE ALSO
    - +
    Returns the finish reason text from an OpenAI JSON response.
    - +
    Returns true if the OpenAI JSON response provides an answer to the prompt.
    - +
    Execute all functions from an OpenAI JSON response.
    @@ -84511,7 +85246,7 @@

    Function Details

    -
    +
    openai/chat-process-streaming-events
    @@ -84610,7 +85345,7 @@

    Function Details

    SEE ALSO
    - +
    Slurps the response data from the response' input stream.
    @@ -84620,7 +85355,7 @@

    Function Details

    -
    +
    openai/embedding-create
    @@ -84732,7 +85467,7 @@

    Function Details

    -
    +
    openai/exec-fn
    @@ -84783,17 +85518,17 @@

    Function Details

    SEE ALSO
    - +
    Returns the finish reason text from an OpenAI JSON response.
    - +
    Returns true if the OpenAI JSON response provides an answer to the prompt.
    - +
    Returns true if the OpenAI JSON response contains tool calls (functions) that it wants the client to run
    @@ -84803,7 +85538,7 @@

    Function Details

    -
    +
    openai/file-delete
    @@ -84902,22 +85637,22 @@

    Function Details

    SEE ALSO
    - +
    Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by ...
    - +
    Returns a list of files that belong to the user's organization.
    - +
    Returns information about a specific file.
    - +
    Returns the contents of the specified file.
    @@ -84927,7 +85662,7 @@

    Function Details

    -
    +
    openai/file-list
    @@ -85033,22 +85768,22 @@

    Function Details

    SEE ALSO
    - +
    Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by ...
    - +
    Returns information about a specific file.
    - +
    Returns the contents of the specified file.
    @@ -85058,7 +85793,7 @@

    Function Details

    -
    +
    openai/file-retrieve
    @@ -85157,22 +85892,22 @@

    Function Details

    SEE ALSO
    - +
    Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by ...
    - +
    Returns a list of files that belong to the user's organization.
    - +
    Returns the contents of the specified file.
    @@ -85182,7 +85917,7 @@

    Function Details

    -
    +
    openai/file-retrieve-content
    @@ -85284,22 +86019,22 @@

    Function Details

    SEE ALSO
    - +
    Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by ...
    - +
    Returns a list of files that belong to the user's organization.
    - +
    Returns information about a specific file.
    @@ -85309,7 +86044,7 @@

    Function Details

    -
    +
    openai/file-upload
    @@ -85414,22 +86149,22 @@

    Function Details

    SEE ALSO
    - +
    Returns a list of files that belong to the user's organization.
    - +
    Returns information about a specific file.
    - +
    Returns the contents of the specified file.
    @@ -85439,7 +86174,7 @@

    Function Details

    -
    +
    openai/image-create
    @@ -85616,22 +86351,22 @@

    Function Details

    SEE ALSO
    - +
    Returns a pretty printed Venice JSON data value.
    - +
    Downloads an image from the given url.
    @@ -85641,7 +86376,7 @@

    Function Details

    -
    +
    openai/image-download
    @@ -85679,7 +86414,7 @@

    Function Details

    -
    +
    openai/image-edits
    @@ -85858,22 +86593,22 @@

    Function Details

    SEE ALSO
    - +
    Returns a pretty printed Venice JSON data value.
    - +
    Downloads an image from the given url.
    @@ -85883,7 +86618,7 @@

    Function Details

    -
    +
    openai/image-variants
    @@ -86034,22 +86769,22 @@

    Function Details

    SEE ALSO
    - +
    Returns a pretty printed Venice JSON data value.
    - +
    Downloads an image from the given url.
    @@ -86059,7 +86794,7 @@

    Function Details

    -
    +
    openai/model-delete
    @@ -86157,12 +86892,12 @@

    Function Details

    SEE ALSO
    - +
    Returns a list of the currently available models, and provides basic information about each one such as the owner and availability.
    - +
    Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
    @@ -86172,7 +86907,7 @@

    Function Details

    -
    +
    openai/model-list
    @@ -86269,12 +87004,12 @@

    Function Details

    SEE ALSO
    - +
    Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
    - +
    Deletes a model instance.
    @@ -86284,7 +87019,7 @@

    Function Details

    -
    +
    openai/model-retrieve
    @@ -86383,12 +87118,12 @@

    Function Details

    SEE ALSO
    - +
    Returns a list of the currently available models, and provides basic information about each one such as the owner and availability.
    - +
    Deletes a model instance.
    @@ -86398,7 +87133,7 @@

    Function Details

    -
    +
    openai/pretty-print-json
    @@ -86430,7 +87165,7 @@

    Function Details

    SEE ALSO
    @@ -86440,7 +87175,7 @@

    Function Details

    -
    +
    openai/thread-create
    @@ -86550,12 +87285,12 @@

    Function Details

    SEE ALSO
    - +
    Create a thread that assistants can interact with.
    @@ -86565,7 +87300,7 @@

    Function Details

    -
    +
    openai/thread-retrieve
    @@ -86665,12 +87400,12 @@

    Function Details

    SEE ALSO
    - +
    Create a thread that assistants can interact with.
    @@ -87225,7 +87960,7 @@

    Function Details

    (os-version) -=> "14.6.1" +=> "15.0.1"
    @@ -89990,7 +90725,7 @@

    Function Details

    (pid) -=> "66118" +=> "25427"
    @@ -90047,7 +90782,7 @@

    Function Details

    (sleep 2000) ; wait for 2 seconds (+ n 10)) (time (map long-running-job (range 4)))) -Elapsed time: 8.01s +Elapsed time: 8.02s => (10 11 12 13)
    @@ -91766,15 +92501,15 @@

    Function Details

    -
    +
    -
    qrref/format
    +
    qrref/checksum
    - (format s) + (checksum ref)
    @@ -91785,7 +92520,10 @@

    Function Details

    -
    Format a QR reference.
    +
    Computes the checksum for a raw reference.
    +
    The passed ref my be a raw QR reference or a QR reference with a checksum digit. It may contain spaces.
    +
    Returns the computed checksum digit 0..9.
    +
    If the passed ref is a QR reference with a correct checksum digit the computed checksum digit will always be 0. This fact is used for QR reference validation!
    @@ -91796,13 +92534,11 @@

    Function Details

    (do (load-module :qrref ['qrref :as 'qr]) - (qr/format "000000000000000000001234011")) -=> "00 00000 00000 00000 00012 34011" - - (do - (load-module :qrref ['qrref :as 'qr]) - (qr/format (qr/qr-ref 1 :bill "1234"))) -=> "00 00000 00000 00000 00012 34011" + (qr/checksum "230 55361 34663 9301") + (qr/checksum "23055361346639301") + (qr/checksum "00 00000 00230 55361 34663 9301") + (qr/checksum "00000000023055361346639301")) +=> 3
    @@ -91812,13 +92548,18 @@

    Function Details

    SEE ALSO
    - +
    Creates a QR reference according to the Swiss payment standards.
    - -
    Parse a QR reference. The reference may be formatted.
    + +
    Returns true if ref is a valid QR reference else false. The reference may contain spaces.
    +
    + +
    + +
    Format a QR reference.
    @@ -91827,15 +92568,15 @@

    Function Details

    -
    +
    -
    qrref/parse
    +
    qrref/create
    - (parse ref) + (create ref-raw)
    @@ -91846,7 +92587,16 @@

    Function Details

    -
    Parse a QR reference. The reference may be formatted.
    +
    Creates a QR reference according to the Swiss payment standards.
    +
    A QR reference has 27 digits. The raw reference plus a checksum digit as the last digit.
    +
    The raw reference passed must not have more than 26 digits. With less than 26 digits leading '0' will be used to fill up to 26 digits.
    +
    Raw reference: "23055361346639301"
    +
    QR reference: "000000000230553613466393013"
    +
    The QR reference can be formatted to "00 00000 00230 55361 34663 93013" using:
    +
    +(qrref/format "000000000230553613466393013")
    + +
    @@ -91857,18 +92607,70 @@

    Function Details

    (do (load-module :qrref ['qrref :as 'qr]) - (qr/parse (qr/qr-ref 1 :bill "1234"))) -=> {:bill-typ :bill :bill-nr "1234" :version 1} + (qr/create "1234") + (qr/create "23055361346639301")) +=> "000000000230553613466393013" - (do - (load-module :qrref ['qrref :as 'qr]) - (qr/parse "000000000000000000001234011")) -=> {:bill-typ :bill :bill-nr "1234" :version 1} +
    + + + +
    +
    SEE ALSO
    + +
    + +
    Returns true if ref is a valid QR reference else false. The reference may contain spaces.
    +
    + +
    + +
    Format a QR reference.
    +
    + +
    + +
    Computes the checksum for a raw reference.
    +
    + +
    + +
    + + + +
    + +
    qrref/format
    + + +
    +
    + + (format ref) + +
    +
    + + +
    + + + +
    +
    Format a QR reference.
    +
    + + +
    + + +
    (do (load-module :qrref ['qrref :as 'qr]) - (qr/parse "00 00000 00000 00000 00012 34011")) -=> {:bill-typ :bill :bill-nr "1234" :version 1} + (qr/format "000000000230553613466393013")) +=> "00 00000 00230 55361 34663 93013"
    @@ -91878,13 +92680,18 @@

    Function Details

    SEE ALSO
    - +
    Creates a QR reference according to the Swiss payment standards.
    - -
    Format a QR reference.
    + +
    Returns true if ref is a valid QR reference else false. The reference may contain spaces.
    +
    + +
    + +
    Computes the checksum for a raw reference.
    @@ -91893,15 +92700,15 @@

    Function Details

    -
    +
    -
    qrref/qr-ref
    +
    qrref/valid?
    - (qr-ref version bill-type bill-nr) + (valid? ref)
    @@ -91912,10 +92719,8 @@

    Function Details

    -
    Creates a QR reference according to the Swiss payment standards.
    -
       -
    version
    , an integer [1..9]

       -
    bill-type
    , one of {:bill, :reminder-1, :reminder-2, :reminder-3}

       -
    bill-nr
    , a string with up to 24 digits '0'..'9'
    - - +
    Returns true if ref is a valid QR reference else false. The reference may contain spaces.
    +
    A valid QR reference must have 27 digits and the checksum must be correct. The last digit is the checksum digits for the first 26 digits.
    @@ -91926,8 +92731,9 @@

    Function Details

    (do (load-module :qrref ['qrref :as 'qr]) - (qr/qr-ref 1 :bill "1234")) -=> "000000000000000000001234011" + (qr/valid? "000000000230553613466393013") + (qr/valid? "00 00000 00230 55361 34663 93013")) +=> true
    @@ -91937,14 +92743,19 @@

    Function Details

    SEE ALSO
    - -
    Parse a QR reference. The reference may be formatted.
    + +
    Creates a QR reference according to the Swiss payment standards.
    - +
    Format a QR reference.
    + +
    + +
    Computes the checksum for a raw reference.
    +
    @@ -92420,7 +93231,7 @@

    Function Details

    (rand-bigint 256) -=> 38911368399659863170307329981126250368265672774544915778166431759201792363994N +=> 22833378395827859798432354166746301893315328928839391630938349640343066044914N
    @@ -92487,10 +93298,10 @@

    Function Details

    (rand-double) -=> 0.34778999733502625 +=> 0.08931499654649289 (rand-double 100.0) -=> 95.43790548198253 +=> 34.59736663401719
    @@ -92557,10 +93368,10 @@

    Function Details

    (rand-gaussian) -=> -0.22201089461099804 +=> 1.8308590256091517 (rand-gaussian 0.0 5.0) -=> 2.364921284645135 +=> 0.1935245223889862
    @@ -92627,10 +93438,10 @@

    Function Details

    (rand-long) -=> 7008399445506065647 +=> 2388542568457845806 (rand-long 100) -=> 48 +=> 2
    @@ -93114,7 +93925,7 @@

    Function Details

    ;; sliding window (width 3) average (->> (partition 3 1 (repeatedly 10 #(rand-long 30))) (map (fn [window] (/ (reduce + window) (count window))))) -=> (9 12 13 19 19 16 13 12) +=> (22 17 19 16 15 15 14 20) ;; reduce all elements of a queue. ;; calls (take! queue) to get the elements of the queue. @@ -94849,7 +95660,7 @@

    Function Details

    (repeatedly 5 #(rand-long 11)) -=> (5 10 10 2 2) +=> (2 10 5 1 8) ;; compare with repeat, which only calls the 'rand-long' ;; function once, repeating the value five times. @@ -99180,7 +99991,7 @@

    Function Details

    -
    +
    server-side-events/parse
    @@ -99224,7 +100035,7 @@

    Function Details

    SEE ALSO
    - +
    Renders a server side event to a string.
    @@ -99234,7 +100045,7 @@

    Function Details

    -
    +
    server-side-events/read-event
    @@ -99284,7 +100095,7 @@

    Function Details

    SEE ALSO
    - +
    Reads multiple events from a :java.io.BufferedReader.
    @@ -99294,7 +100105,7 @@

    Function Details

    -
    +
    server-side-events/read-events
    @@ -99345,7 +100156,7 @@

    Function Details

    SEE ALSO
    - +
    Read a single event from a :java.io.BufferedReader.
    @@ -99355,7 +100166,7 @@

    Function Details

    -
    +
    server-side-events/render
    @@ -99419,7 +100230,7 @@

    Function Details

    SEE ALSO
    - +
    Parses a server side event in string representation to a map.
    @@ -101084,13 +101895,13 @@

    Function Details

    (shuffle '(1 2 3 4 5 6)) -=> (1 2 6 5 3 4) +=> (3 1 6 2 5 4) (shuffle [1 2 3 4 5 6]) -=> [6 4 5 2 1 3] +=> [3 6 1 2 4 5] (shuffle "abcdef") -=> (#\e #\f #\c #\d #\b #\a) +=> (#\a #\f #\e #\d #\b #\c)
    @@ -107513,22 +108324,22 @@

    Function Details

    SEE ALSO
    - +
    Runs all tests in the given namespaces; prints results. The tests are run grouped the namespace.
    - +
    Runs a single test; prints results. Returns a map summarizing the test results.
    - +
    Wrap test runs in a fixture function to perform setup and teardown. Fixtures are always bound to a namespace, hence tests from different ...
    - +
    Returns true if the given test summary indicates all tests were successful, false otherwise.
    @@ -107568,7 +108379,7 @@

    Function Details

    -
    +
    test/run-test-var
    @@ -107626,12 +108437,12 @@

    Function Details

    - +
    Runs all tests in the given namespaces; prints results. The tests are run grouped the namespace.
    - +
    Wrap test runs in a fixture function to perform setup and teardown. Fixtures are always bound to a namespace, hence tests from different ...
    @@ -107641,7 +108452,7 @@

    Function Details

    -
    +
    test/run-tests
    @@ -107711,12 +108522,12 @@

    Function Details

    - +
    Runs a single test; prints results. Returns a map summarizing the test results.
    - +
    Wrap test runs in a fixture function to perform setup and teardown. Fixtures are always bound to a namespace, hence tests from different ...
    @@ -107726,7 +108537,7 @@

    Function Details

    -
    +
    test/successful?
    @@ -107785,17 +108596,17 @@

    Function Details

    - +
    Runs all tests in the given namespaces; prints results. The tests are run grouped the namespace.
    - +
    Runs a single test; prints results. Returns a map summarizing the test results.
    - +
    Wrap test runs in a fixture function to perform setup and teardown. Fixtures are always bound to a namespace, hence tests from different ...
    @@ -107805,7 +108616,7 @@

    Function Details

    -
    +
    test/use-fixtures
    @@ -107977,12 +108788,12 @@

    Function Details

    - +
    Runs all tests in the given namespaces; prints results. The tests are run grouped the namespace.
    - +
    Runs a single test; prints results. Returns a map summarizing the test results.
    @@ -109282,7 +110093,7 @@

    Function Details

    (time (+ 100 200)) -Elapsed time: 4.21µs +Elapsed time: 4.54µs => 300
    @@ -109474,7 +110285,7 @@

    Function Details

    (time/date) -=> Thu Sep 05 18:26:52 CEST 2024 +=> Thu Oct 10 12:26:43 CEST 2024
    @@ -109552,13 +110363,13 @@

    Function Details

    (time/day-of-month (time/local-date)) -=> 5 +=> 10 (time/day-of-month (time/local-date-time)) -=> 5 +=> 10 (time/day-of-month (time/zoned-date-time)) -=> 5 +=> 10
    @@ -109712,13 +110523,13 @@

    Function Details

    (time/day-of-year (time/local-date)) -=> 249 +=> 284 (time/day-of-year (time/local-date-time)) -=> 249 +=> 284 (time/day-of-year (time/zoned-date-time)) -=> 249 +=> 284
    @@ -109831,13 +110642,13 @@

    Function Details

    (time/first-day-of-month (time/local-date)) -=> 2024-09-01 +=> 2024-10-01 (time/first-day-of-month (time/local-date-time)) -=> 2024-09-01 +=> 2024-10-01 (time/first-day-of-month (time/zoned-date-time)) -=> 2024-09-01 +=> 2024-10-01
    @@ -109921,31 +110732,31 @@

    Function Details

    (time/format (time/local-date) "dd-MM-yyyy") -=> "05-09-2024" +=> "10-10-2024" (time/format (time/local-date) (time/formatter "dd-MM-yyyy")) -=> "05-09-2024" +=> "10-10-2024" (time/format (time/local-date) :iso) -=> "2024-09-05" +=> "2024-10-10" (time/format (time/local-date-time) "yyyy-MM-dd'T'HH:mm:ss") -=> "2024-09-05T18:26:55" +=> "2024-10-10T12:26:46" (time/format (time/local-date-time) (time/formatter "yyyy-MM-dd'T'HH:mm:ss")) -=> "2024-09-05T18:26:55" +=> "2024-10-10T12:26:46" (time/format (time/local-date-time) :iso) -=> "2024-09-05T18:26:55.793" +=> "2024-10-10T12:26:46.779" (time/format (time/zoned-date-time) "yyyy-MM-dd'T'HH:mm:ss.SSSz") -=> "2024-09-05T18:26:55.820CEST" +=> "2024-10-10T12:26:46.807CEST" (time/format (time/zoned-date-time) :iso) -=> "2024-09-05T18:26:55.847+02:00" +=> "2024-10-10T12:26:46.834+02:00" (time/format (time/zoned-date-time) (time/formatter "yyyy-MM-dd'T'HH:mm:ss.SSSz")) -=> "2024-09-05T18:26:55.874CEST" +=> "2024-10-10T12:26:46.862CEST"
    @@ -110055,10 +110866,10 @@

    Function Details

    => 0 (time/hour (time/local-date-time)) -=> 18 +=> 12 (time/hour (time/zoned-date-time)) -=> 18 +=> 12
    @@ -110117,13 +110928,13 @@

    Function Details

    (time/last-day-of-month (time/local-date)) -=> 2024-09-30 +=> 2024-10-31 (time/last-day-of-month (time/local-date-time)) -=> 2024-09-30 +=> 2024-10-31 (time/last-day-of-month (time/zoned-date-time)) -=> 2024-09-30 +=> 2024-10-31
    @@ -110306,10 +111117,10 @@

    Function Details

    => 28 (time/length-of-month (time/local-date-time)) -=> 30 +=> 31 (time/length-of-month (time/zoned-date-time)) -=> 30 +=> 31
    @@ -110431,7 +111242,7 @@

    Function Details

    (time/local-date) -=> 2024-09-05 +=> 2024-10-10 (time/local-date 2018 8 1) => 2018-08-01 @@ -110446,7 +111257,7 @@

    Function Details

    => 2013-08-01 (time/local-date (. :java.util.Date :new)) -=> 2024-09-05 +=> 2024-10-10
    @@ -110559,7 +111370,7 @@

    Function Details

    (time/local-date-time) -=> 2024-09-05T18:26:53.255 +=> 2024-10-10T12:26:44.201 (time/local-date-time 2018 8 1) => 2018-08-01T00:00 @@ -110580,7 +111391,7 @@

    Function Details

    => 2013-08-01T02:00 (time/local-date-time (. :java.util.Date :new)) -=> 2024-09-05T18:26:53.471 +=> 2024-10-10T12:26:44.394
    @@ -110766,10 +111577,10 @@

    Function Details

    => 0 (time/milli (time/local-date-time)) -=> 169 +=> 138 (time/milli (time/zoned-date-time)) -=> 196 +=> 165
    @@ -110831,22 +111642,22 @@

    Function Details

    (time/minus (time/local-date) :days 2) -=> 2024-09-03 +=> 2024-10-08 (time/minus (time/local-date-time) :days 2) -=> 2024-09-03T18:26:56.747 +=> 2024-10-08T12:26:47.754 (time/minus (time/zoned-date-time) :days 2) -=> 2024-09-03T18:26:56.774+02:00[Europe/Zurich] +=> 2024-10-08T12:26:47.781+02:00[Europe/Zurich] (time/minus (time/local-date) (. :java.time.Period :ofDays 2)) -=> 2024-09-03 +=> 2024-10-08 (time/minus (time/local-date-time) (. :java.time.Period :ofDays 2)) -=> 2024-09-03T18:26:56.828 +=> 2024-10-08T12:26:47.836 (time/minus (time/zoned-date-time) (. :java.time.Period :ofDays 2)) -=> 2024-09-03T18:26:56.855+02:00[Europe/Zurich] +=> 2024-10-08T12:26:47.863+02:00[Europe/Zurich]
    @@ -110960,13 +111771,13 @@

    Function Details

    (time/month (time/local-date)) -=> 9 +=> 10 (time/month (time/local-date-time)) -=> 9 +=> 10 (time/month (time/zoned-date-time)) -=> 9 +=> 10
    @@ -111244,22 +112055,22 @@

    Function Details

    (time/plus (time/local-date) :days 2) -=> 2024-09-07 +=> 2024-10-12 (time/plus (time/local-date-time) :days 2) -=> 2024-09-07T18:26:56.585 +=> 2024-10-12T12:26:47.588 (time/plus (time/zoned-date-time) :days 2) -=> 2024-09-07T18:26:56.612+02:00[Europe/Zurich] +=> 2024-10-12T12:26:47.616+02:00[Europe/Zurich] (time/plus (time/local-date) (. :java.time.Period :ofDays 2)) -=> 2024-09-07 +=> 2024-10-12 (time/plus (time/local-date-time) (. :java.time.Period :ofDays 2)) -=> 2024-09-07T18:26:56.666 +=> 2024-10-12T12:26:47.671 (time/plus (time/zoned-date-time) (. :java.time.Period :ofDays 2)) -=> 2024-09-07T18:26:56.693+02:00[Europe/Zurich] +=> 2024-10-12T12:26:47.698+02:00[Europe/Zurich]
    @@ -111311,10 +112122,10 @@

    Function Details

    => 0 (time/second (time/local-date-time)) -=> 55 +=> 46 (time/second (time/zoned-date-time)) -=> 55 +=> 46
    @@ -111373,16 +112184,16 @@

    Function Details

    (time/to-millis (time/date)) -=> 1725553617062 +=> 1728556008074 (time/to-millis (time/local-date)) -=> 1725487200000 +=> 1728511200000 (time/to-millis (time/local-date-time)) -=> 1725553617116 +=> 1728556008129 (time/to-millis (time/zoned-date-time)) -=> 1725553617143 +=> 1728556008157
    @@ -111430,7 +112241,7 @@

    Function Details

    (time/unix-timestamp) -=> 1725560814 +=> 1728563205 (time/unix-timestamp 2018 8 1) => 1533081600 @@ -111445,13 +112256,13 @@

    Function Details

    => 2018-08-01T14:20:10.200 (time/unix-timestamp (time/local-date-time)) -=> 1725560814 +=> 1728563205 (time/unix-timestamp (time/local-date 2018 8 1)) => 1533081600 (time/unix-timestamp (. :java.util.Date :new)) -=> 1725560814 +=> 1728563205
    @@ -111516,7 +112327,7 @@

    Function Details

    (time/unix-timestamp-to-local-date-time (time/unix-timestamp)) -=> 2024-09-05T18:26:54 +=> 2024-10-10T12:26:45
    @@ -111567,13 +112378,13 @@

    Function Details

    (time/with-time (time/local-date) 22 00 15 333) -=> 2024-09-05T22:00:15.333 +=> 2024-10-10T22:00:15.333 (time/with-time (time/local-date-time) 22 00 15 333) -=> 2024-09-05T22:00:15.333 +=> 2024-10-10T22:00:15.333 (time/with-time (time/zoned-date-time) 22 00 15 333) -=> 2024-09-05T22:00:15.333+02:00[Europe/Zurich] +=> 2024-10-10T22:00:15.333+02:00[Europe/Zurich]
    @@ -111918,7 +112729,7 @@

    Function Details

    (time/zoned-date-time) -=> 2024-09-05T18:26:53.607+02:00[Europe/Zurich] +=> 2024-10-10T12:26:44.556+02:00[Europe/Zurich] (time/zoned-date-time 2018 8 1) => 2018-08-01T00:00+02:00[Europe/Zurich] @@ -111942,10 +112753,10 @@

    Function Details

    => 2013-08-01T02:00+02:00[Europe/Zurich] (time/zoned-date-time (. :java.util.Date :new)) -=> 2024-09-05T18:26:53.838+02:00[Europe/Zurich] +=> 2024-10-10T12:26:44.776+02:00[Europe/Zurich] (time/zoned-date-time "UTC") -=> 2024-09-05T16:26:53.865Z[UTC] +=> 2024-10-10T10:26:44.803Z[UTC] (time/zoned-date-time "UTC" 2018 8 1) => 2018-08-01T00:00Z[UTC] @@ -111969,7 +112780,7 @@

    Function Details

    => 2013-08-01T00:00Z[UTC] (time/zoned-date-time "UTC" (. :java.util.Date :new)) -=> 2024-09-05T16:26:54.081Z[UTC] +=> 2024-10-10T10:26:45.028Z[UTC]
    @@ -112208,7 +113019,7 @@

    Function Details

    -
    +
    timing/elapsed
    @@ -112247,7 +113058,7 @@

    Function Details

    SEE ALSO
    - +
    Runs a function f with printing the elapsed time. Returns the value that f has produced.
    @@ -112257,7 +113068,7 @@

    Function Details

    -
    +
    timing/run
    @@ -112304,7 +113115,7 @@

    Function Details

    SEE ALSO
    - +
    Runs a function f and returns the elapsed time in milliseconds.
    @@ -112962,7 +113773,7 @@

    Function Details

    (total-memory) -=> "2445.5MB" +=> "2322.0MB"
    @@ -114513,7 +115324,7 @@

    Function Details

    (used-memory) -=> "301.2MB" +=> "302.5MB"
    @@ -114611,7 +115422,7 @@

    Function Details

    (uuid) -=> "3e5a4ad5-6e9f-4637-9c33-ccb547c1d917" +=> "0fb0cdbb-63ac-460d-917c-f02141732a23"
    diff --git a/cheatsheet.pdf b/cheatsheet.pdf index 0b241d331..1c56a57d0 100644 Binary files a/cheatsheet.pdf and b/cheatsheet.pdf differ diff --git a/doc/maven-central.svg b/doc/maven-central.svg index 65eb96c86..d5880df8e 100644 --- a/doc/maven-central.svg +++ b/doc/maven-central.svg @@ -17,7 +17,7 @@ maven-central maven-central - v1.12.33 - v1.12.33 + v1.12.34 + v1.12.34 diff --git a/doc/readme/build-dependencies.md b/doc/readme/build-dependencies.md index 8bf9e6939..2a6e1462a 100644 --- a/doc/readme/build-dependencies.md +++ b/doc/readme/build-dependencies.md @@ -16,7 +16,7 @@ dependencies { com.github.jlangch venice - 1.12.33 + 1.12.34 ``` diff --git a/doc/readme/execute-scripts.md b/doc/readme/execute-scripts.md index 6d154fea7..0c26ca412 100644 --- a/doc/readme/execute-scripts.md +++ b/doc/readme/execute-scripts.md @@ -11,7 +11,7 @@ ## Run a script ```text -foo> java -jar venice-1.12.33.jar -script "(+ 1 1)" +foo> java -jar venice-1.12.34.jar -script "(+ 1 1)" => 2 ``` @@ -31,7 +31,7 @@ File "script.venice": run: ```text -foo> java -jar venice-1.12.33.jar -file script.venice +foo> java -jar venice-1.12.34.jar -file script.venice => 19.634954084936208 ``` @@ -50,7 +50,7 @@ File "script.venice": run: ```text -foo> java -jar venice-1.12.33.jar -file script.venice 3 +foo> java -jar venice-1.12.34.jar -file script.venice 3 => 4 ``` @@ -90,7 +90,7 @@ Files: /users/foo/venice ├── script.venice ├── libs -│ └── venice-1.12.33.jar +│ └── venice-1.12.34.jar └── scripts └── test.venice ``` @@ -99,7 +99,7 @@ Run: ```text foo> cd /users/foo/venice -foo> java -jar libs/venice-1.12.33.jar -file script.venice -loadpath "/users/foo/venice/scripts" +foo> java -jar libs/venice-1.12.34.jar -file script.venice -loadpath "/users/foo/venice/scripts" ``` The script loads "test.venice" from "/users/foo/venice/scripts/test.venice". diff --git a/doc/readme/ext-tomcat.md b/doc/readme/ext-tomcat.md index 1736f6822..779bf5114 100644 --- a/doc/readme/ext-tomcat.md +++ b/doc/readme/ext-tomcat.md @@ -136,7 +136,7 @@ REPL classpath: libs/jakarta.annotation-api-2.1.1.jar libs/jansi-2.4.0.jar libs/tomcat-embed-core-10.1.1.jar - libs/venice-1.12.33.jar + libs/venice-1.12.34.jar ``` diff --git a/doc/readme/multi-file-app.md b/doc/readme/multi-file-app.md index 58a5e8f50..3f64b7a4b 100644 --- a/doc/readme/multi-file-app.md +++ b/doc/readme/multi-file-app.md @@ -98,14 +98,14 @@ foo ├── billing.zip └── libs ├── ... - └── venice-1.12.33.jar + └── venice-1.12.34.jar ``` It can be started from a terminal with ```shell mars$ cd ~/foo -mars$ java -jar libs/venice-1.12.33.jar -app billing.zip +mars$ java -jar libs/venice-1.12.34.jar -app billing.zip ``` or @@ -174,7 +174,7 @@ The billing application JAR may be deployed to a file structure like foo └── libs ├── billing.jar - ├── venice-1.12.33.jar + ├── venice-1.12.34.jar └── openpdf-1.3.22.jar ``` diff --git a/doc/readme/openai.md b/doc/readme/openai.md index 67eca9c8d..0d8f59b85 100644 --- a/doc/readme/openai.md +++ b/doc/readme/openai.md @@ -58,7 +58,7 @@ Add the key to the 'repl.env' file in the REPL home directory. with: ``` -foo> java -jar venice-1.12.33.jar -setup -colors +foo> java -jar venice-1.12.34.jar -setup -colors ``` *Unix like OSs* diff --git a/doc/readme/repl-advanced.md b/doc/readme/repl-advanced.md index e80efbe2b..dc97f4904 100644 --- a/doc/readme/repl-advanced.md +++ b/doc/readme/repl-advanced.md @@ -153,7 +153,7 @@ list list* list? list-comp ```text REPL_HOME ├── libs -│ ├── venice-1.12.33.jar +│ ├── venice-1.12.34.jar │ ├── jansi-2.4.1.jar │ └── repl.json ├── tools @@ -182,7 +182,7 @@ venice> !classpath REPL classpath: libs libs/jansi-2.4.1.jar - libs/venice-1.12.33.jar + libs/venice-1.12.34.jar ``` diff --git a/doc/readme/shell-scripts.md b/doc/readme/shell-scripts.md index 71e9e94c6..8dddf0954 100644 --- a/doc/readme/shell-scripts.md +++ b/doc/readme/shell-scripts.md @@ -59,7 +59,7 @@ A larger example that zips Tomcat log files on a monthly base: ;; ------------------------------------------------------------------------------- ;; Zips the last month's Tomcat log files ;; -;; > java -jar venice-1.12.33.jar -file zip-tomcat-logs.venice ./logs +;; > java -jar venice-1.12.34.jar -file zip-tomcat-logs.venice ./logs ;; ------------------------------------------------------------------------------- (do (defn tomcat-log-file-filter [prefix year month] diff --git a/doc/readme/start.md b/doc/readme/start.md index 9e0906def..ab145ea4f 100644 --- a/doc/readme/start.md +++ b/doc/readme/start.md @@ -24,12 +24,12 @@ The Venice JAR published to Maven is compiled with Java 8. Nevertheless Venice i ### 2. Get the Venice JAR file -Manually download the JAR from Maven: [Venice JAR](https://search.maven.org/artifact/com.github.jlangch/venice/1.12.33/jar) +Manually download the JAR from Maven: [Venice JAR](https://search.maven.org/artifact/com.github.jlangch/venice/1.12.34/jar) or download it with `curl`: ``` -curl "https://repo1.maven.org/maven2/com/github/jlangch/venice/1.12.33/venice-1.12.33.jar" --output ./venice-1.12.33.jar +curl "https://repo1.maven.org/maven2/com/github/jlangch/venice/1.12.34/venice-1.12.34.jar" --output ./venice-1.12.34.jar ``` @@ -43,7 +43,7 @@ Open a terminal, move to the directory the Venice JAR is located, and start the REPL in setup mode: ```text -foo> java -jar venice-1.12.33.jar -setup -colors +foo> java -jar venice-1.12.34.jar -setup -colors ``` For a REPL run in a darkmode terminal use the option `-colors-dark` instead of @@ -94,7 +94,7 @@ venice> ```text REPL_HOME ├── libs -│ ├── venice-1.12.33.jar +│ ├── venice-1.12.34.jar │ ├── jansi-2.4.1.jar │ └── repl.json ├── tools @@ -114,7 +114,7 @@ REPL_HOME ```text REPL_HOME ├── libs -│ ├── venice-1.12.33.jar +│ ├── venice-1.12.34.jar │ ├── jansi-2.4.1.jar │ └── repl.json ├── tools diff --git a/gradle.properties b/gradle.properties index 03a426036..95a1da3cc 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=1.12.34-SNAPSHOT +version=1.12.34 diff --git a/src/main/java/com/github/jlangch/venice/Launcher.java b/src/main/java/com/github/jlangch/venice/Launcher.java index 5133ab62a..3b7a03acc 100644 --- a/src/main/java/com/github/jlangch/venice/Launcher.java +++ b/src/main/java/com/github/jlangch/venice/Launcher.java @@ -53,7 +53,7 @@ *

    The launcher is configured as the Venice JAR's main-class. * *

    Running scripts: - *

    java -jar venice-1.12.33.jar -script "(+ 1 1)"
    + *
    java -jar venice-1.12.34.jar -script "(+ 1 1)"
    * *

    Running a REPL: *

    @@ -90,10 +90,10 @@
      *  -repl              start a REPL
      *
      *  -setup             setup a REPL
    - *                     E.g.:  java -jar venice-1.12.33.jar -setup -colors \n" +
    - *                            java -jar venice-1.12.33.jar -setup -colors-light \n" +
    - *                            java -jar venice-1.12.33.jar -setup -colors-dark \n" +
    - *                            java -jar venice-1.12.33.jar -setup -colors -dir /Users/foo/repl \n" +
    + *                     E.g.:  java -jar venice-1.12.34.jar -setup -colors \n" +
    + *                            java -jar venice-1.12.34.jar -setup -colors-light \n" +
    + *                            java -jar venice-1.12.34.jar -setup -colors-dark \n" +
    + *                            java -jar venice-1.12.34.jar -setup -colors -dir /Users/foo/repl \n" +
      *
      *  -help              prints a help
      *  
    @@ -262,7 +262,7 @@ private static void printHelp() { "The launcher is configured as the Venice JAR's main-class. \n" + "\n" + "Running scripts: \n" + - " java -jar venice-1.12.33.jar -script \"(+ 1 1)\" \n" + + " java -jar venice-1.12.34.jar -script \"(+ 1 1)\" \n" + "\n" + "Running a REPL: \n" + " java \\ \n" + @@ -300,10 +300,10 @@ private static void printHelp() { " E.g.: -app-repl /Users/foo/tools/dbclient.venice\n" + "\n" + " -setup setup a REPL \n" + - " E.g.: java -jar venice-1.12.33.jar -setup -colors \n" + - " java -jar venice-1.12.33.jar -setup -colors-light \n" + - " java -jar venice-1.12.33.jar -setup -colors-dark \n" + - " java -jar venice-1.12.33.jar -setup -colors -dir /Users/foo/repl \n" + + " E.g.: java -jar venice-1.12.34.jar -setup -colors \n" + + " java -jar venice-1.12.34.jar -setup -colors-light \n" + + " java -jar venice-1.12.34.jar -setup -colors-dark \n" + + " java -jar venice-1.12.34.jar -setup -colors -dir /Users/foo/repl \n" + "\n" + " -help prints a help \n" + "\n" + diff --git a/src/main/resources/META-INF/license.txt b/src/main/resources/META-INF/license.txt index 5964c2770..38ad7e0c1 100644 --- a/src/main/resources/META-INF/license.txt +++ b/src/main/resources/META-INF/license.txt @@ -209,7 +209,7 @@ VENICE SUBCOMPONENTS ----------------------------------------------------------------------- -The Venice Release 1.12.33 includes a number of subcomponents with +The Venice Release 1.12.34 includes a number of subcomponents with separate copyright notices and license terms. The product that includes this file does not necessarily use all the open source subcomponents referred to below. Your use of the source code for these subcomponents diff --git a/src/main/resources/META-INF/notice.txt b/src/main/resources/META-INF/notice.txt index 522e37278..ec5608875 100644 --- a/src/main/resources/META-INF/notice.txt +++ b/src/main/resources/META-INF/notice.txt @@ -1,4 +1,4 @@ -Venice Release 1.12.33 +Venice Release 1.12.34 Copyright (c) 2017-2024 Venice diff --git a/src/main/resources/com/github/jlangch/venice/app.venice b/src/main/resources/com/github/jlangch/venice/app.venice index 3dd918f72..dbfeb568b 100644 --- a/src/main/resources/com/github/jlangch/venice/app.venice +++ b/src/main/resources/com/github/jlangch/venice/app.venice @@ -73,7 +73,7 @@ to "billing.venice". The app can be run from the command line as:¶ - `> java -jar venice-1.12.33.jar -app billing.zip`¶ + `> java -jar venice-1.12.34.jar -app billing.zip`¶ Venice reads the archive and loads the archive's main file. Or with additional Java libraries (all JARs in 'libs' dir):¶ diff --git a/src/main/resources/com/github/jlangch/venice/setup/repl.bat b/src/main/resources/com/github/jlangch/venice/setup/repl.bat index 297245c3f..a2e75a5b9 100644 --- a/src/main/resources/com/github/jlangch/venice/setup/repl.bat +++ b/src/main/resources/com/github/jlangch/venice/setup/repl.bat @@ -6,7 +6,7 @@ REM # REPL_HOME REM # | REM # +-- libs REM # | +-- repl.json -REM # | +-- venice-1.12.33.jar +REM # | +-- venice-1.12.34.jar REM # | REM # +-- scripts REM # | +-- script-1.venice diff --git a/src/main/resources/com/github/jlangch/venice/setup/repl.sh b/src/main/resources/com/github/jlangch/venice/setup/repl.sh index bcc27014b..ac7e47171 100644 --- a/src/main/resources/com/github/jlangch/venice/setup/repl.sh +++ b/src/main/resources/com/github/jlangch/venice/setup/repl.sh @@ -6,7 +6,7 @@ # | # +-- libs # | +-- repl.json -# | +-- venice-1.12.33.jar +# | +-- venice-1.12.34.jar # | # +-- scripts # | +-- script-1.venice
    Load/Save
    Create/Copy
    Properties
    File Formats
    Transform
    G2D
    Transform
    Drawing
    Filling
    Shapes
    Polygons @@ -13841,7 +13886,7 @@

    Function Details

    ;; invoke static method (. :java.time.ZonedDateTime :now) -=> 2024-09-05T18:26:00.192+02:00[Europe/Zurich] +=> 2024-10-10T12:25:50.510+02:00[Europe/Zurich] ;; invoke static method (. :java.lang.Math :min 10 20) @@ -15655,7 +15700,7 @@

    Function Details

    -
    +
    ansi/ansi
    @@ -15697,7 +15742,7 @@

    Function Details

    -
    +
    ansi/bg-color
    @@ -15737,7 +15782,7 @@

    Function Details

    SEE ALSO
    - +
    Defines an extended foreground color from the 256-color extended color set. The code ranges from 0 to 255.
    @@ -15747,7 +15792,7 @@

    Function Details

    -
    +
    ansi/fg-color
    @@ -15812,7 +15857,7 @@

    Function Details

    SEE ALSO
    - +
    Defines an extended background color from the 256-color extended color set. The code ranges from 0 to 255.
    @@ -15822,7 +15867,7 @@

    Function Details

    -
    +
    ansi/progress
    @@ -15909,7 +15954,7 @@

    Function Details

    -
    +
    ansi/progress-bar
    @@ -16006,7 +16051,7 @@

    Function Details

    -
    +
    ansi/style
    @@ -16052,7 +16097,7 @@

    Function Details

    -
    +
    ansi/with-ansi
    @@ -16090,7 +16135,7 @@

    Function Details

    -
    +
    ansi/without-ansi
    @@ -16128,7 +16173,7 @@

    Function Details

    -
    +
    ansi/without-cursor
    @@ -16336,7 +16381,7 @@

    Function Details

    -
    +
    app/build
    @@ -16383,7 +16428,7 @@

    Function Details

    "data/logo.jpg" "/staging/data/logo.jpg" } ".")
    Loading Venice files works relative to the application. You can only load files that are in the app archive. If for instances "billing.venice" in the above example requires "utils/render.venice" just add
    (load-file "utils/render.venice")
    to "billing.venice".
    -
    The app can be run from the command line as:

    > java -jar venice-1.12.33.jar -app billing.zip

    Venice reads the archive and loads the archive's main file.
    +
    The app can be run from the command line as:

    > java -jar venice-1.12.34.jar -app billing.zip

    Venice reads the archive and loads the archive's main file.
    Or with additional Java libraries (all JARs in 'libs' dir):

    > java -cp "libs/*" com.github.jlangch.venice.Launcher -app billing.zip
    @@ -16397,7 +16442,7 @@

    Function Details

    -
    +
    app/manifest
    @@ -16645,7 +16690,7 @@

    Function Details

    -
    +
    ascii-table/print
    @@ -16703,7 +16748,7 @@

    Function Details

    SEE ALSO
    - +
    Renders an ascii table.
    @@ -16713,7 +16758,7 @@

    Function Details

    -
    +
    ascii-table/render
    @@ -16839,7 +16884,7 @@

    Function Details

    SEE ALSO
    - +
    Renders and prints an ascii table.
    @@ -18087,7 +18132,7 @@

    Function Details

    -
    +
    benchmark/benchmark
    @@ -18700,7 +18745,7 @@

    Function Details

    (bytebuf-allocate-random 20) -=> [202 40 64 27 235 73 224 27 102 194 150 29 109 65 107 222 49 192 177 206] +=> [50 205 190 201 213 107 86 89 220 34 71 126 102 18 185 210 6 4 28 89]
    @@ -24577,7 +24622,7 @@

    Function Details

    (complement even?) -=> anonymous-13befd67-a9f3-4e5c-8b03-8720aff000a0 +=> anonymous-65a66146-be5b-4e3f-9f3d-cf66f720b235 (filter (complement even?) '(1 2 3 4)) => (1 3) @@ -24704,7 +24749,7 @@

    Function Details

    -
    +
    component/Component
    @@ -24735,7 +24780,7 @@

    Function Details

    -
    +
    component/dep
    @@ -24799,12 +24844,12 @@

    Function Details

    SEE ALSO
    - +
    Returns the dependencies of the component 'c' or nil if there aren't any dependencies.
    - +
    Returns id of the component 'c'.
    @@ -24814,7 +24859,7 @@

    Function Details

    -
    +
    component/deps
    @@ -24878,12 +24923,12 @@

    Function Details

    SEE ALSO
    - +
    Returns a dependency given by its key 'k' from the component 'c' dependencies.
    - +
    Returns id of the component 'c'.
    @@ -24893,7 +24938,7 @@

    Function Details

    -
    +
    component/id
    @@ -24951,12 +24996,12 @@

    Function Details

    SEE ALSO
    - +
    Returns a dependency given by its key 'k' from the component 'c' dependencies.
    - +
    Returns the dependencies of the component 'c' or nil if there aren't any dependencies.
    @@ -24966,7 +25011,7 @@

    Function Details

    -
    +
    component/system-map
    @@ -25024,7 +25069,7 @@

    Function Details

    SEE ALSO
    - +
    Associates a component dependency graph with the 'system' that has been created through a call to system-map. 'dependency-map' is a ...
    @@ -25034,7 +25079,7 @@

    Function Details

    -
    +
    component/system-using
    @@ -25127,7 +25172,7 @@

    Function Details

    SEE ALSO
    - +
    Returns a system constructed of components given as key/value pairs. The 'key' is a keyword (the component's id) referencing the component ...
    @@ -25532,7 +25577,7 @@

    Function Details

    -
    +
    config/build
    @@ -25642,32 +25687,32 @@

    Function Details

    SEE ALSO
    - +
    Reads a JSON configuration part from given file f.
    - +
    Reads a JSON configuration part from given path in classpath.
    - +
    Reads a configuration value from an environment variable and associates it to the given path in a map.
    - +
    Reads a configuration value from an system property and associates it to the given path in a map.
    - +
    Reads configuration part from environment variables, filtered by a prefix. nil may passed as prefix to get env vars.
    - +
    Reads configuration part from system properties, filtered by a prefix. nil may passed as prefix to get property vars.
    @@ -25677,7 +25722,7 @@

    Function Details

    -
    +
    config/env
    @@ -25742,17 +25787,17 @@

    Function Details

    SEE ALSO
    - +
    Reads a configuration value from an environment variable and associates it to the given path in a map.
    - +
    Reads configuration part from system properties, filtered by a prefix. nil may passed as prefix to get property vars.
    - +
    Merges given configuration parts and returns it as a map.
    @@ -25762,7 +25807,7 @@

    Function Details

    -
    +
    config/env-var
    @@ -25809,17 +25854,17 @@

    Function Details

    SEE ALSO
    - +
    Reads a configuration value from an system property and associates it to the given path in a map.
    - +
    Reads configuration part from environment variables, filtered by a prefix. nil may passed as prefix to get env vars.
    - +
    Merges given configuration parts and returns it as a map.
    @@ -25829,7 +25874,7 @@

    Function Details

    -
    +
    config/file
    @@ -25901,12 +25946,12 @@

    Function Details

    SEE ALSO
    - +
    Reads a JSON configuration part from given path in classpath.
    - +
    Merges given configuration parts and returns it as a map.
    @@ -25921,7 +25966,7 @@

    Function Details

    -
    +
    config/properties
    @@ -25960,12 +26005,12 @@

    Function Details

    SEE ALSO
    - +
    Reads a configuration value from an system property and associates it to the given path in a map.
    - +
    Merges given configuration parts and returns it as a map.
    @@ -25975,7 +26020,7 @@

    Function Details

    -
    +
    config/property-var
    @@ -26009,7 +26054,7 @@

    Function Details

    => {:java {:vendor "Azul Systems, Inc."}} (config/property-var "java.version" [:java :version]) -=> {:java {:version "1.8.0_392"}} +=> {:java {:version "1.8.0_422"}} (config/property-var "SERVER_PORT" [:http :port]) => nil @@ -26025,17 +26070,17 @@

    Function Details

    SEE ALSO
    - +
    Reads a configuration value from an environment variable and associates it to the given path in a map.
    - +
    Reads configuration part from system properties, filtered by a prefix. nil may passed as prefix to get property vars.
    - +
    Merges given configuration parts and returns it as a map.
    @@ -26045,7 +26090,7 @@

    Function Details

    -
    +
    config/resource
    @@ -26088,12 +26133,12 @@

    Function Details

    SEE ALSO
    - +
    Reads a JSON configuration part from given file f.
    - +
    Merges given configuration parts and returns it as a map.
    @@ -27131,13 +27176,13 @@

    Function Details

    (-> (io/slurp file-out :binary false) (bytebuf) (hexdump/dump)))) -00000000: efbf bdef bfbd efbf bd48 15ef bfbd 4f7b .........H....O{ -00000010: efbf bdef bfbd efbf bd1c efbf bdef bfbd ................ -00000020: efbf bd1a efbf bd76 efbf bd58 0359 efbf .......v...X.Y.. -00000030: bd0b efbf bd08 63c2 b3ef bfbd efbf bdef ......c......... -00000040: bfbd 6c08 efbf bd7e efbf bdef bfbd efbf ..l....~........ -00000050: bdef bfbd efbf bd4a efbf bd24 1eef bfbd .......J...$.... -00000060: efbf bd4c efbf bdef bfbd 717b ...L......q{ +00000000: 29ef bfbd 094c 2a21 efbf bdef bfbd efbf )....L*!........ +00000010: bd09 efbf bd35 70ef bfbd 46ef bfbd 0037 .....5p...F....7 +00000020: efbf bd46 efbf bdef bfbd 5d72 efbf bd1c ...F......]r.... +00000030: efbf bdef bfbd 16ef bfbd efbf bd58 efbf .............X.. +00000040: bd06 1f45 0172 efbf bd45 efbf bdef bfbd ...E.r...E...... +00000050: 5218 261c efbf bd44 60ef bfbd 4cef bfbd R.&....D`...L... +00000060: 646d dm => nil
    @@ -27220,7 +27265,7 @@

    Function Details

    (io/delete-file-on-exit file) (io/spit file data) (crypt/hash-file "SHA-256" "-salt-" file))) -=> "vctWO8Fu19EnrkeZ61ny2TL+hsHXGpZCvxV26jSzRKw="
    +=> "gQU1z2+uDZ5lZ1hDbROpxQJdQu7333IE4qFFXDL2I6w="
    @@ -27927,7 +27972,7 @@

    Function Details

    (current-time-millis) -=> 1725553601362 +=> 1728555992263
    @@ -32068,11 +32113,11 @@

    Function Details

    (->> (lazy-seq #(rand-long 100)) (take 4) (doall)) -=> (68 40 95 47) +=> (35 89 61 31) (->> (lazy-seq #(rand-long 100)) (doall 4)) -=> (61 2 30 69) +=> (6 13 76 99)
    @@ -32139,10 +32184,10 @@

    Function Details

    (dobench 100 (+ 1 1)) -=> (14714 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0) +=> (25942 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0) (dobench 1000 2 100 (+ 1 1)) -=> (6113 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0) +=> (5748 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0)
    @@ -37128,7 +37173,7 @@

    Function Details

    -
    +
    excel/add-area-chart
    @@ -37249,27 +37294,27 @@

    Function Details

    SEE ALSO
    - +
    Build an area chart data series
    @@ -37279,7 +37324,7 @@

    Function Details

    -
    +
    excel/add-bar-chart
    @@ -37424,27 +37469,27 @@

    Function Details

    SEE ALSO
    - +
    Build a bar chart data series
    @@ -37579,7 +37624,7 @@

    Function Details

    -
    +
    excel/add-conditional-bg-color
    @@ -37631,52 +37676,52 @@

    Function Details

    SEE ALSO
    - +
    Clears the values and/or styles in a specific row in a sheet.
    - +
    Deletes a specific row from a sheet.
    - +
    Copies a specific row in a sheet.
    - +
    Copies a specific row from a sheet to end of the sheet.
    - +
    Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
    - +
    Render a single data item to the sheet
    - +
    Set a formula for a specific cell given by its row and col.
    - +
    Auto size the width of all columns in the sheet.
    - +
    Auto size the width of column col (1..n) in the sheet.
    - +
    Set the height of a row (1..n) in the sheet.
    @@ -37686,7 +37731,7 @@

    Function Details

    -
    +
    excel/add-conditional-border
    @@ -37753,52 +37798,52 @@

    Function Details

    SEE ALSO
    - +
    Clears the values and/or styles in a specific row in a sheet.
    - +
    Deletes a specific row from a sheet.
    - +
    Copies a specific row in a sheet.
    - +
    Copies a specific row from a sheet to end of the sheet.
    - +
    Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
    - +
    Render a single data item to the sheet
    - +
    Set a formula for a specific cell given by its row and col.
    - +
    Auto size the width of all columns in the sheet.
    - +
    Auto size the width of column col (1..n) in the sheet.
    - +
    Set the height of a row (1..n) in the sheet.
    @@ -37808,7 +37853,7 @@

    Function Details

    -
    +
    excel/add-conditional-font-color
    @@ -37861,52 +37906,52 @@

    Function Details

    SEE ALSO
    - +
    Clears the values and/or styles in a specific row in a sheet.
    - +
    Deletes a specific row from a sheet.
    - +
    Copies a specific row in a sheet.
    - +
    Copies a specific row from a sheet to end of the sheet.
    - +
    Writes the passed data items, a sequence of maps of name/value pairs, to the sheet.
    - +
    Render a single data item to the sheet
    - +
    Set a formula for a specific cell given by its row and col.
    - +
    Auto size the width of all columns in the sheet.
    - +
    Auto size the width of column col (1..n) in the sheet.
    - +
    Set the height of a row (1..n) in the sheet.
    @@ -37916,6 +37961,73 @@

    Function Details

    +
    + +
    excel/add-email-hyperlink
    + + +
    +
    + + (add-email-hyperlink sheet row col text url) + +
    +
    + + +
    + + + +
    +
    Adds an email hyperlink to a cell
    +
    + + +
    + + +
    + + (do + (load-module :excel) + (let [wbook (excel/create :xlsx) + sheet (excel/add-sheet wbook "Sheet 1")] + (excel/add-font wbook :hyperlink { :underline true + :color :BLUE }) + (excel/add-style wbook :hyperlink { :font :hyperlink }) + (excel/write-values sheet 1 1 "John" "Doe") + (excel/write-values sheet 2 1 "Sue" "Ford") + (excel/add-email-hyperlink sheet 1 3 "john.doe@foo.org" "john.doe@foo.org") + (excel/add-email-hyperlink sheet 2 3 "sue.ford@foo.org" "sue.ford@foo.org") + (excel/cell-style sheet 1 3 :hyperlink) + (excel/cell-style sheet 2 3 :hyperlink) + (excel/auto-size-columns sheet) + (excel/write->file wbook "sample.xlsx"))) + +
    + + + +
    +
    SEE ALSO
    + +
    + +
    Remove a cell comment
    +
    + +
    + +
    Adds an URL hyperlink to a cell
    +
    + +
    + +
    + + +
    excel/add-font
    @@ -37959,6 +38071,10 @@

    Function Details

    italic, e.g. true, false
    :underline b
    underline, e.g. true, false
    :color c
    color, either an Excel indexed color or a HTML color, e.g. :BLUE, "#00FF00" note: only XLSX supports 24 bit colors