Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Fortran

Idiom #166 Concatenate two lists

Create the list ab containing all the elements of the list a, followed by all the elements of the list b.

real, dimension(:), allocatable :: ab

ab = [a, b]
(def ab (concat a b))

New implementation...