Skip to content

Commit

Permalink
Added tablep function.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirherrbatka committed Feb 16, 2024
1 parent b055870 commit 9cc873a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/api/package.lisp
Expand Up @@ -48,6 +48,7 @@
#:standard-header
#:with-header)
(:reexport #:vellum.table
#:tablep
#:*current-row*
#:*transform-in-place*
#:aggregate
Expand Down
2 changes: 2 additions & 0 deletions src/table/generics.lisp
Expand Up @@ -51,3 +51,5 @@
(defgeneric bind-row-closure (bind-row-object &key header aggregated-output))

(defgeneric read-iterator (object))

(defgeneric tablep (object))
8 changes: 8 additions & 0 deletions src/table/implementation.lisp
Expand Up @@ -724,3 +724,11 @@
:report "Skip this row."
nil))))))
(call-next-method)))


(defmethod tablep ((object t))
nil)


(defmethod tablep ((object fundamental-table))
t)
1 change: 1 addition & 0 deletions src/table/package.lisp
Expand Up @@ -60,6 +60,7 @@
#:transformation
#:transformation-error
#:transformation-result
#:tablep
#:vmask
#:vstack
#:vstack*
Expand Down

0 comments on commit 9cc873a

Please sign in to comment.