Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #46213

Rosetta: Array concatenation

From "WJ" <w_a_x_man@yahoo.com>
Newsgroups comp.lang.forth
Subject Rosetta: Array concatenation
Date 2016-03-25 22:11 +0000
Organization A noiseless patient Spider
Message-ID <nd4d1o$1rg$1@dont-email.me> (permalink)

Show all headers | View raw


Show how to concatenate two arrays in your language. If this
is as simple as array1 + array2, so be it.


OCaml:

# Array.append [|0;1;2|] [|3;4;5|];;
- : int array = [|0; 1; 2; 3; 4; 5|]
# Array.concat [[|0;1;2|]; [|3;4;5|]; [|6;7;8|]];;
- : int array = [|0; 1; 2; 3; 4; 5; 6; 7; 8|]

ANS Forth has no arrays.


-- 
Another major theme here is that whereas allegiance to ingroups indicates
psychopathology in gentiles, the epitome of psychological health for the
authors of The Authoritarian Personality is the individualist who is completely
detached from all ingroups, including his or her family.
 --- Dr. Kevin MacDonald; "The Frankfurt School of Social Research and the
Pathologization of Gentile Group Allegiances"

Back to comp.lang.forth | Previous | Next | Find similar | Unroll thread


Thread

Rosetta: Array concatenation "WJ" <w_a_x_man@yahoo.com> - 2016-03-25 22:11 +0000

csiph-web