Liking cljdoc? Tell your friends :D

tablecloth.api.unique-by


strategy-foldclj

(strategy-fold ds columns-selector)
(strategy-fold ds columns-selector fold-fn)
(strategy-fold ds columns-selector fold-fn ungroup-options)
source

unique-byclj

(unique-by ds)
(unique-by ds columns-selector)
(unique-by
  ds
  columns-selector
  {:keys [strategy select-keys parallel?] :or {strategy :first} :as options})

Remove rows which contains the same data column-selector Select columns for uniqueness strategy There are 4 strategies defined to handle duplicates

:first - select first row (default) :last - select last row :random - select random row any function - apply function to a columns which are subject of uniqueness

Remove rows which contains the same data
`column-selector` Select columns for uniqueness
`strategy` There are 4 strategies defined to handle duplicates

  `:first` - select first row (default)
  `:last` - select last row
  `:random` - select random row
  any function - apply function to a columns which are subject of uniqueness
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close