definição e significado de append | sensagent.com


   Publicitade R▼


 » 
alemão búlgaro chinês croata dinamarquês eslovaco esloveno espanhol estoniano farsi finlandês francês grego hebraico hindi holandês húngaro indonésio inglês islandês italiano japonês korean letão língua árabe lituano malgaxe norueguês polonês português romeno russo sérvio sueco tailandês tcheco turco vietnamês
alemão búlgaro chinês croata dinamarquês eslovaco esloveno espanhol estoniano farsi finlandês francês grego hebraico hindi holandês húngaro indonésio inglês islandês italiano japonês korean letão língua árabe lituano malgaxe norueguês polonês português romeno russo sérvio sueco tailandês tcheco turco vietnamês

Definição e significado de append

Definição

append (v.)

1.state or say further"`It doesn't matter,' he supplied"

2.fix to; attach"append a charm to the necklace"

3.add to the very end"He appended a glossary to his novel where he used an invented language"

   Publicidade ▼

Merriam Webster

AppendAp*pend" (ăp*pĕnd"), v. t. [imp. & p. p. Appended; p. pr. & vb. n. Appending.] [L. appendere or F. appendre: cf. OE. appenden, apenden, to belong, OF. apendre, F. appendre, fr. L. appendēre, v. i., to hang to, appendĕre, v. t., to hang to; ad + pendēre, v. i., to hang, pendĕre, v. t., to hang. See Pendant.]
1. To hang or attach to, as by a string, so that the thing is suspended; as, a seal appended to a record; the inscription was appended to the column.

2. To add, as an accessory to the principal thing; to annex; as, notes appended to this chapter.

A further purpose appended to the primary one. I. Taylor.

   Publicidade ▼

Definiciones (más)

definição - Wikipedia

Sinónimos

Locuções

Dicionario analógico

Wikipedia

Append

From Wikipedia, the free encyclopedia

Jump to: navigation, search

In general, to append is to join or add on to the end of something. For example, an appendix is a section appended (added to the end) of a document.

In computer programming, append is the name of a procedure for concatenating (linked) lists or arrays in some high-level programming languages.

Contents

Lisp

Append originates in the Lisp programming language. The append procedure takes two or more (linked) lists as arguments, and returns the concatenation of these lists.<source lang="lisp">(append '(1 2 3) '(a b) '() '(6))

Output
(1 2 3 a b 6)

</source>Since the append procedure must completely copy all of its arguments except the last, both its time and space complexity are O(n) for a list of n elements. It may thus be a source of inefficiency if used injudiciously in code.

The nconc procedure (called append! in Scheme) performs the same function as append, but destructively: it alters the cdr of each argument (save the last), pointing it to the next list.

Implementation

Append can easily be defined recursively in terms of cons. The following is a simple implementation in Scheme, for two arguments only:<source lang="scheme">(define append

 (lambda (ls1 ls2)   (if (null? ls1)     ls2     (cons (car ls1) (append (cdr ls1) ls2)))))

</source>

Other languages

Following Lisp, other high-level languages which feature linked lists as primitive data structures have adopted an append Haskell uses the ++ operator to append lists. OCaml uses the @ operator to append lists.

Other languages use the + or ++ symbols for nondestructive string/list/array concatenation.

Prolog

The logic programming language Prolog features a built-in append predicate, which can be implemented as follows:<source lang="prolog">append([],Ys,Ys).append([X|Xs],Ys,[X|Zs]) :-

   append(Xs,Ys,Zs).

</source>This predicate can be used for appending, but also for picking lists apart. Calling<source lang="prolog">

?- append(L,R,[1,2,3]).

</source>yields the solutions:

L = [], R = [1, 2, 3] ;L = [1], R = [2, 3] ;L = [1, 2], R = [3] ;L = [1, 2, 3], R = []

Miranda

This right-fold, from Hughes (1989:5-6), has the same semantics (by example) as the Scheme implementation above, for two arguments.

append a b = reduce cons b a

Where reduce is Miranda's name for fold, and cons constructs a list from two values or lists.

For example,

append [1,2] [3,4] = reduce cons [3,4] [1,2]    = (reduce cons [3,4]) (cons 1 (cons 2 nil))    = cons 1 (cons 2 [3,4]))        (replacing cons by cons and nil by [3,4])    = [1,2,3,4]

Haskell

This right-fold has the same effect as the Scheme implementation above:<source lang="haskell">append :: [a] -> [a] -> [a]append xs ys = foldr (:) ys xs</source>This is essentially a reimplementation of Haskell's ++ operator.

DOS command

append is a DOS command that allows programs to open data files in specified directories as if they were in the current directory. It appends the directories to the search path list.

References

 

todas as traduções do append


Conteùdo de sensagent

  • definição
  • sinónimos
  • antónimos
  • enciclopédia

 

8360 visitantes em linha

calculado em 0,031s