(first-n-zeros coll)Given a collection, this function finds the number of zero elements of the collection from the start
Given a collection, this function finds the number of zero elements of the collection from the start
(index-matrix-rows matrix)This function indexes matrix's rows and returns a map where key is the row number and value is the row itself
This function indexes `matrix`'s rows and returns a map where key is the row number and value is the row itself
(rationalise n)Rationalises a number into a fraction, same as clojure.core/rationalize
But this will always return the numerator as is, without the decimal
Hence the denominator will be in multiples of 10
Rationalises a number into a fraction, same as `clojure.core/rationalize` But this will always return the numerator as is, without the decimal Hence the denominator will be in multiples of 10
(replace-nth coll n replacement)Replaces nth item from coll with replacement
Replaces `n`th item from `coll` with `replacement`
(shingles s n)Generate shingles out of a string s (could also work with other types of collections)
The shingle size is specified by n
If s is a very small string (of count less than or equal to 5),
just a list of it's individual chars is returned
Generate shingles out of a string `s` (could also work with other types of collections) The shingle size is specified by `n` If `s` is a very small string (of count less than or equal to 5), just a list of it's individual chars is returned
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |