Codish Lexicon

One word for one meaning, One meaning for one word,
Symmetric opposites, Comprehensive classes.
A dictionary of computer programming names.

map — a function that returns the respective values for an linear collection of keys and a transitive function.   commute: each   python: map(function, sequence[, sequence, ...]) -> list Return a list of the results of applying the function to the items of the argument sequence(s). If more than one sequence is given, the function is called with an argument list consisting of the corresponding item of each sequence, substituting None for missing values when not all sequences have the same length. If the function is None, return a list of the items of the sequence (or a list of tuples if more than one sequence).   perl: [list]: apply a change to a list to get back a new list with the changes   aka: array map   pertains: iterable   related: pair   mentioned: abs, binary relation, enumerate, equivalence relation, font, zip with

array mapsee: map   php: applies the callback to the elements of the given arrays &dagger.

each — to return an ordered linear collection corresponding to the respective values from a given linear collection and a relation.   commute: map   perl: [hash]: retrieve the next key/value pair from a hash   php: return the current key and value pair from an array and advance the array cursor &dagger.   mentioned: group, transpose

valuedata of any class.   see: def, variable   aka: datum   related: dict

key — an object that one can index into a collection to retrieve a value.   php: fetch a key from an array &dagger.   related: dict   aka: id   distinct: pos

transitive functionconcept: a unary function that consistently returns the corresponding value in a range for a given key in a domain.   distinct: relation, binary relation, transitive relation

abs — absolute value.   returns the positive reflection of negative integers, returning positive numbers as they were.   a transitive function that maps integers into the natural number line.   distinct: absolute   is: stateless, idempotent   related: neg   python: abs(number) -> number Return the absolute value of the argument.   perl: [number]: absolute value function   php: absolute value &dagger.   distinct: pos   related: positive

enumerate — to assign nominal values to each respective value in a list, effectively creating the map that relates each ordinal offset in a list with its respective value.   python: enumerate(iterable) -> iterator for index, value of iterable Return an enumerate object. iterable must be an other object that supports iteration. The enumerate object yields pairs containing a count (from zero) and a value yielded by the iterable argument. enumerate is useful for obtaining an indexed list, (0, seq[0]), (1, seq[1]), (2, seq[2]).   mentioned: next

equivalence relationconcept: a binary relation that returns whether two values are equivalent for some notion of equivalence, like having the same value (eq), identical ref (is), some common attribute, or maping to the same value with a transitive function, like len.   see: eq, is   aka: same   mentioned: group, unique

zip with — a shortcut provided in (haskell) among other functional programming languages for composing zip and map variadically.   related: zip

in the following notation, the "\" character declares a function as an expression and "*" is used as in python for variadic args and parameters.

identity: zip-with(f, *tuples) eq map(\(tuples) f(*tuples), zip(*tuples))

duple — a tuple that has a length of 2.   is: tuple   aka: pair   mentioned: items

tuple — a linear collection of fixed length. tuples are generally used for records or structures where the value at each index has a particular meaning, but no name, distinguishing it from an object or class of objects (haskell) (python).   includes: nuple, single, duple, triple, quadruple, quintuple, sextuple, septuple, octuple, nonuple, decuple, undecuple, duodecuple   python: tuple() -> an empty tuple; tuple(sequence) -> tuple initialized from sequence's items If the argument is a tuple, the return value is the same object.   classes: decuple, duodecuple, duple, nonuple, nuple, octuple, quadruple, quintuple, septuple, sextuple, single, triple, undecuple   aka: pair, record, struct, structure   mentioned: destructure, zero

Names of Tuples based on Length
lengthname
0nuple
1single
2duple
3triple
4quadruple
5quintuple
6sextuple
7septuple
8octuple
9nonuple
10decuple
11undecuple
12duodecuple
13tredecuple
14quattuordecuple
15quindecuple
16sexdecuple
17septendecuple
18octodecuple
19novemdecuple
20vigenuple
21unvigenuple
22duovigenuple
23trevigenuple
24quattuorvigenuple
25quinvigenuple
26sexvigenuple
27septenvigenuple
28octovigenuple
29novemvigenuple
30trigenuple
31untrigenuple
32duotrigenuple
33tretrigenuple
34quattuortrigenuple
35quintrigenuple
36sextrigenuple
37septentrigenuple
38octotrigenuple
39novemtrigenuple
40quadragenuple
41unquadragenuple
42duoquadragenuple
43trequadragenuple
44quattuorquadragenuple
45quinquadragenuple
46sexquadragenuple
47septenquadragenuple
48octoquadragenuple
49novemquadragenuple
50quinquagenuple
51unquinquagenuple
52duoquinquagenuple
53trequinquagenuple
54quattuorquinquagenuple
55quinquinquagenuple
56sexquinquagenuple
57septenquinquagenuple
58octoquinquagenuple
59novemquinquagenuple
60sexagenuple
61unsexagenuple
62duosexagenuple
63tresexagenuple
64quattuorsexagenuple
65quinsexagenuple
66sexsexagenuple
67septensexagenuple
68octosexagenuple
69novemsexagenuple
70septuagenuple
71unseptuagenuple
72duoseptuagenuple
73treseptuagenuple
74quattuorseptuagenuple
75quinseptuagenuple
76sexseptuagenuple
77septenseptuagenuple
78octoseptuagenuple
79novemseptuagenuple
80octogenuple
81unoctogenuple
82duooctogenuple
83treoctogenuple
84quattuoroctogenuple
85quinoctogenuple
86sexoctogenuple
87septoctogenuple
88octooctogenuple
89novemoctogenuple
90nonagenuple
91unnonagenuple
92duononagenuple
93trenonagenuple
94quattuornonagenuple
95quinnonagenuple
96sexnonagenuple
97septennonagenuple
98octononagenuple
99novemnonagenuple
100centuple
200bicentuple
300tricentuple
400quadricentuple
500quincentuple
600sexcentuple
700septemcentuple
800octocentuple
900novemcentuple
1,000millenuple
2,000bimillenuple
3,000trimillenuple
4,000quadrimillenuple
5,000quinmillenuple
6,000sexmillenuple
7,000septemmillenuple
8,000octomillenuple
9,000novemmillenuple
10,000decemmillenuple

zip — return a list of lists of the respective values from given lists.   perform a transpose of the given arguments.   related: transpose, zip with   distinct: merge   in a shell   python: zip(seq1 [, seq2 [...]]) -> [(seq1[0], seq2[0] ...), (...)] Return a list of tuples, where each tuple contains the i-th element from each of the argument sequences. The returned list is truncated in length to the length of the shortest argument sequence.   related: bale, pair

zip([1, 2, 3], [4, 5, 6]) eq [[1, 4], [2, 5], [3, 6]]

zip([1, 2, 3], [4, 5]) eq [[1, 4], [2, 5]]

zip([1, 2], [4, 5, 6]) eq [[1, 4], [2, 5]]

attr — an attribute of an object.   a setable and getable value associated with a symbol or name in an object.   in some languages, attributes are either private, protected, or public.   distinct: item   python: property   c++: member   aka: member, property   related: pair

items — returns a collection of key to value items (aka duples, pairs) for a dict.   python: dict: D.items() -> list of D's (key, value) pairs, as 2-tuples.   pertains: dict   aka: pairs   mentioned: attrs, update

relation — a "finitary relation".   a function of a particular number of arguments that returns whether the arguments have a particular relationship.   related: binary relation, transitive relation   distinct: transitive function   classes: binary relation   aka: mapping   mentioned: bound, complexity function, dict, each, range, ternary relation

group — a collection of equivalent objects for a given equivalence relation.   a function that groups values into bags keyed by the results of a transitive function on each value. the returned object is a dict of sets.   aka: equivalence class   distinct: class   pertains: iterable   mentioned: duck, genericity, interface, unit, zero

transpose — to return a 2 dimensional collection where each row corresponds to the col of another 2 dimensional collection.   related: zip   aka: unzip   inverse: transpose

transpose([[1, 2, 3], [4, 5, 6]]) eq [[1, 4], [2, 5], [3, 6]]

transpose([[1, 2, 3], [4, 5]]) eq [[1, 4], [2, 5]]

transpose([[1, 2], [4, 5, 6]]) eq [[1, 4], [2, 5]]

pythonic idiom: items = [(0, 'a'), (1, 'b')]
numbers, letters = zip(*items)

all — returns whether all values froma given iterable are true.   short circuits on the first falsy value.   related: any, every   python: all(iterable) -> bool Return True if bool(x) is True for all values x in the iterable.   aka: intersection   pertains: iterable   mentioned: idempotent

any — returns whether any value from a given iterable is true.   short circuits on the first truthy value.   related: all, some   python: any(iterable) -> bool Return True if bool(x) is True for any x in the iterable.   pertains: iterable   aka: union

some — returns whether any value in an iterable is produces a truthy value when passed through a given transitive function.   short circuits on the first truthy value.   related: any, every   pertains: iterable

every — returns whether all values in an iterable produce a truthy value when passed through a given transitive function.   short circuits on the first falsy value.   related: all, some   pertains: iterable   mentioned: complete

count — a stateful destructive operation that returns the number of values in an iteration.   distinct: length   python: list: L.count(value) -> integer return number of occurrences of value.   python: str: S.count(sub[, start[, end]]) -> int Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.   python: unicode: S.count(sub[, start[, end]]) -> int Return the number of non-overlapping occurrences of substring sub in Unicode string S[start:end]. Optional arguments start and end are interpreted as in slice notation.   php: count all elements in an array, or properties in an object &dagger.   distinct: len   pertains: iterable   mentioned: fewest, most, range

where — to return a stable list containing all of the values from a given list that pass a given condition.   distinct: filter   aka: array filter, grep   pertains: iterable   mentioned: transpose

filter — to return a stable copy of a list omitting all of the values that fail a given condition (boolean function).   distinct: where   python: filter(function or None, sequence) -> list, tuple, or string Return those items of sequence for which function(item) is true. If function is None, return the items that are true. If sequence is a tuple or string, return the same type, else return a list.   pertains: iterable

bale — transforms an iterable into a list of accumulated sub-lists of a given length.   related: zip, add   aka: xargs   pertains: iterable

baled([1, 2, 3, 4]) eq [[1, 2], [3, 4]]

baled([1, 2, 3, 4, 5, 6], 3) eq [[1, 2, 3], [4, 5, 6]]

baled([1, 2, 3, 4, 5], 3) eq [[1, 2, 3], [4, 5]]

baled([1, 2, 3, 4, 5], 3, 0) eq [[1, 2, 3], [4, 5, 0]]

shell idiom: input | xargs -n 2

iter — to iterate, or return an iteration.   is: iterable   python: iter(collection) -> iterator; iter(callable, sentinel) -> iterator Get an iterator from an object. In the first form, the argument must supply its own iterator, or be a sequence. In the second form, the callable is called until it returns the sentinel.   related: iterable   aka: iterate

iteration — an object that represents the state of a lazy iteration and implements a next function to advance the cursor and return the next value of the iteration.   an iteration walks from the begin to the end of a lazy ordered linear collection, providing each value on demand.   attrs: next   is: iterable   classes: stream   mentioned: iter

interface — a group of interchangeable objects because they explicitly subscribe to a common base interface that defines the behaviors for some common attributes.   distinct: duck, class, type   mentioned: heap array, iterable, polymorphism, trie

bound — accepts an iterable and returns the value closest to a boundary given a judge, an optional relation, and an optional base value from which to start.   mentioned: bounder, greater, less

destructure — to assign a compound value's contents to the respective slots of a compound lvalue.   in {python}, this is known as "unpacking" and applies to iterable values assigned to tuple expressions.   in {javascript}, destructuring applies to both {Object} and {Array} values and lvalues.   distinct: unpack

python example: a, b = b, a

python example: a, b = range(2); a == 0; b == 1

javascript example: var [a, b] = [1, 2]; a == 1; b == 2

javascript example: var {a: b} = {a: 10}; b == 10

max — returns the greatest value from a given iterable.   related: gt   opposite: min   python: max(iterable[, key=func]) -> value; max(a, b, c, ...[, key=func]) -> value With a single iterable argument, return its largest item. With two or more arguments, return the largest argument.   php: find highest value &dagger.   aka: great, greater, greatest, largest, upmost   distinct: most   mentioned: hsb, hsl

min — returns the minimum, or least, value from a given iterable.   related: lt   opposite: max   distinct: minute   python: min(iterable[, key=func]) -> value; min(a, b, c, ...[, key=func]) -> value With a single iterable argument, return its smallest item. With two or more arguments, return the smallest argument.   php: find lowest value &dagger.   distinct: fewest   aka: least, less, lowest, smallest

productreduces an iterable collection of numbers to the product of all the values with mul and unit as a basis. values are not necessarily numbers.   related: mul, sum

reversed — returns the reversed form of an iterable.   is: stateless   distinct: reverse   opposite: reversed   python: reversed(sequence) -> reverse iterator over values of the sequence Return a reverse iterator.   aka: array reverse   mentioned: ed, next

stream — a source or target for an ordered progression of values, usually characters in text by way of read and write. input streams are iterable.   is: iteration

sumreduces an iterable collection of numbers to the sum total of all the values with add and zero as a basis. values are not necessarily numbers.   related: add, product   python: sum(sequence, start=0) -> value Returns the sum of a sequence of numbers (NOT strings) plus the value of parameter 'start'. When the sequence is empty, returns start.   aka: array sum

def — to define; to put a local variable in the current scope of a context.   aka: value   distinct: var

dict — an unordered linear collection (particularly a set) of items that expresses a relation of keys (domain) to values (range).   in systems where dict inherits bag, it overrides the hash and eq attr functions.   is: collection, bag   attrs: keys, values, items, update, complete   related: item, key, value   distinct: object   perl: hash   seuss: a saque of items.   python: dict() -> new empty dictionary.; dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs.

next

blog comments powered by Disqus