Skip to content

Commit

Permalink
Add percentage provision example
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaunonen committed Jul 20, 2024
1 parent 2524a1a commit 66807fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kirppu/templates/kirppu/help_lisp.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ <h2>Help for the subset of Lisp language</h2>
<h3>Examples</h3>
<h4>0.50 per sold item</h4>
<pre><code>(* 0.5 (.count sold_and_compensated))</code></pre>
<h4>5 % of sold items</h4>
<pre><code>(* 0.05 (.sumBy 'price sold_and_compensated))</code></pre>
<h4>0.50 per sold item under price of 5, and 1 per sold item of and over price of 5</h4>
<pre><code>(begin
(define under (.count (.filter sold_and_compensated '(< price 5))))
Expand Down

0 comments on commit 66807fd

Please sign in to comment.