Migrated the docs configuration towards two column layout and simplified repository link text in docs
Reworded amendment
Hint at the possibility to leave out the final placeholder
Confiture (Finnish konfiguroida) with whole fruits - data oriented programming for configuration and friends.
User and developer documentation of konfiguroida.
Feature requests and bug reports are bested entered in the todos of konfiguroida.
The primary source of konfiguroida
lives somewhere on a mountain in Central Switzerland.
But, we use decentralized version control (git), so any clone can become the source to everyone's benefit, no central only code.
Anyway, the preferred public clones of konfiguroida
are:
# using npm
❯ npm install konfiguroida
# using yarn
❯ yarn add konfiguroida
// using require
const { cook, partial } = require('konfiguroida')
// using import
import { cook, partial } from 'konfiguroida'
// Some population to sample from:
const FRUITS = ['apples', 'currants', 'oranges', 'peaches', 'pears']
// Preparing the kitchen for cooking confitures from diverse fruits:
const cookFrom = partial(cook, FRUITS)
const cookFromFruits = partial(cookFrom, 'fruits')
const cookFromFruitsConfiture = partial(cookFromFruits, 'confiture')
// Cook the confitures:
const confitures = cookFromFruitsConfiture([
[{size: 'XXS'}, ['currants']],
[{size: 'XXL'}, null]
])
console.log(confitures)
//[
// { confiture: { size: 'XXS' }, fruits: [ 'currants' ] },
// {
// confiture: { size: 'XXL' },
// fruits: [ 'apples', 'oranges', 'peaches', 'pears' ]
// }
//]
Experimental.
Note: The default branch is default
.