Liking cljdoc? Tell your friends :D

brew-bot.util

Common fns required across brew-bot

Common fns required across brew-bot
raw docstring

determine-boil-timeclj/s

(determine-boil-time hops)

Given a vector of common-beer-format conforming ::hop maps, determine the longest necessary boil time for alpha acid extraction. In the case of an abnormally short boil, default to 60 minutes.

Given a vector of common-beer-format conforming ::hop maps, determine the longest necessary boil time for alpha acid extraction.
In the case of an abnormally short boil, default to 60 minutes.
sourceraw docstring

determine-recipe-typeclj/s

(determine-recipe-type fermentables)

Given a vector of common-beer-format conforming ::fermentable maps, determine if the recipe is 'Extract', 'Partial Mash', or 'All Grain'

Given a vector of common-beer-format conforming ::fermentable maps, determine if the recipe is 'Extract', 'Partial Mash', or 'All Grain'
sourceraw docstring

fermentables->cbf-fermentablesclj/s

(fermentables->cbf-fermentables fermentables)

Given a vector of common-beer-format conforming ::fermentable maps, convert them to a ::fermentables record

Given a vector of common-beer-format conforming ::fermentable maps, convert them to a ::fermentables record
sourceraw docstring

hops->cbf-hopsclj/s

(hops->cbf-hops hops)

Given a vector of common-beer-format conforming ::hop maps, convert them to a ::hops record

Given a vector of common-beer-format conforming ::hop maps, convert them to a ::hops record
sourceraw docstring

max-n-kvclj/s

(max-n-kv m n)

Given m with k-v pairs for which all values are numbers, return the n k-v pairs with the highest values

Given `m` with k-v pairs for which all values are numbers, return the `n` k-v pairs with the highest values
sourceraw docstring

min-n-kvclj/s

(min-n-kv m n)

Given m with k-v pairs for which all values are numbers, return the n k-v pairs with the lowest values

Given `m` with k-v pairs for which all values are numbers, return the `n` k-v pairs with the lowest values
sourceraw docstring

yeasts->cbf-yeastsclj/s

(yeasts->cbf-yeasts yeasts)

Given a vector of common-beer-format conforming ::yeast maps, convert them to a ::yeasts record

Given a vector of common-beer-format conforming ::yeast maps, convert them to a ::yeasts record
sourceraw docstring

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

× close