Skip to content

Commit

Permalink
Add average to default functions
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhanshuguptagit committed Jun 29, 2024
1 parent e7ef851 commit 61cd09d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/bean/ui/db.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
inc:{x+1}
sum:{x.reduce({x + y})}
count:{x.reduce(inc, 0)}
concatt:{x.concat(y)}"))
concatt:{x.concat(y)}
average:{x.sum() / x.count()}"))

(def Cell
[:map
Expand Down
1 change: 0 additions & 1 deletion src/bean/ui/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@
::rename-frame
(undoable)
(fn edit-frame [db [_ old-name new-name]]
(prn new-name)
(let [frame (get-in (:sheet db) [:frames old-name])]
(-> db
(update-in [:sheet :frames] dissoc old-name)
Expand Down

0 comments on commit 61cd09d

Please sign in to comment.