Everything2
Near Matches
Ignore Exact
Full Text
Everything2

flatten

created by JeffMagnus

(idea) by pukesick (4.7 d) (print)   ?   (I like it!) Fri Mar 03 2000 at 9:22:34

To knock down or out with a blow of the fist.

- american underworld dictionary - 1950

(thing) by ariels (4.7 d) (print)   ?   (I like it!) Wed May 31 2000 at 10:55:08

To produce the list of leaves of a tree. Note that in-order traversal, pre-order traversal and post-order traversal all produce the same flattened list of leaves, so it doesn't matter which we pick.

(In Lisp, Scheme is a little different):

(defun flatten (l)
  (cond
   ((null l) nil)
   ((atom l) (list l))
   (t (append (flatten (car l)) (flatten (cdr l))))))
Note that this is not particularly efficient; in fact, the repeated use of append is terrible!


(idea) by Jargon (1.8 y) (print)   ?   (I like it!) Thu Jul 19 2001 at 8:50:14

flat-file = F = flavor

flatten vt.

[common] To remove structural information, esp. to filter something with an implicit tree structure into a simple sequence of leaves; also tends to imply mapping to flat-ASCII. "This code flattens an expression with parentheses into an equivalent canonical form."

--The Jargon File version 4.3.1, ed. ESR, autonoded by rescdsk.


(definition) by Webster 1913 (print) Tue Dec 21 1999 at 23:41:17

Flat"ten (?), v. t. [imp. & p. p. Flattened (?); p. pr. & vb. n. Flattening.] [From Flat, a.]

1.

To reduce to an even surface or one approaching evenness; to make flat; to level; to make plane.

2.

To throw down; to bring to the ground; to prostrate; hence, to depress; to deject; to dispirit.

3.

To make vapid or insipid; to render stale.

4. Mus.

To lower the pitch of; to cause to sound less sharp; to let fall from the pitch.

To flatten a sail Naut., to set it more nearly fore-and-aft of the vessel. -- Flattening oven, in glass making, a heated chamber in which split glass cylinders are flattened for window glass.

 

© Webster 1913.


Flat"ten, v. i.

To become or grow flat, even, depressed dull, vapid, spiritless, or depressed below pitch.

 

© Webster 1913.


printable version
chaos

flavor Roulade of Herbed Lamb with Stewed Garlic The Love Song of J. Alfred Prufrock cluster bomb
American Underworld Dictionary Le Déjeuner sur l'herbe IRC DPT
Knock down Squash flat-file quirkyalone
wax LISP
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Just another sprinkling of indeterminacy
two-fold cost of sex
Periodic Table of the Elements
Frankenstein
Look, look! I can write inane bullshit too!
A.I.
Measurements based on the human body
Bait al-Hikmah
steel drum
feline hedonism
Ethical egoism
Henry IV
Things I need to tell my teenaged daughters about boys
Freedom of religion is not freedom from religion
New Writeups
BookReader
Fear the Cold(dream)
Pavlovna
Kathleen MacInnes(person)
stainedglass
1(fiction)
kalen
Three "T"s(idea)
octillion369
Undead(idea)
archiewood
Ico(fiction)
Heisenberg
Why I love Everything2(log)
octillion369
Death Knight(person)
XWiz
Are you hoping for a miracle?(review)
santo
The Host(review)
LostPsion
"Shut the Fuck Up" Theaters(idea)
beatrice
You've been slowly taking me over for nearly a year, do you know that?(idea)
Berek
YouTube(thing)
shaogo
How to Pretend to Have a Job(idea)
hapax
Les Provinciales(review)
This page courtesy of The Everything Development Company