This language bar is your friend. Select your favorite languages!
fgl
type
  TFloatList = specialize TFPGList<Double>;
var
  List: TFloatList;
  D: Double;

begin
  List := TFloatList.Create;
  while not Eof do
  begin
    Read(D);
    List.Add(D);
  end;
  List.Free;
end.
import std.stdio;
import std.conv : to;
import std.algorithm.iteration : map;
auto list = stdin.byLine.map!(a => a.to!int);
list(map(int, input().split())
STDIN.read.split.map(&:to_i)
use std::io::stdin();
let in = stdin();
let lock = in.lock();
let nums = lock.lines()
    .map(|line| isize::from_str_radix(line.trim(), 10);

Do you know the best way to do this in your language ?
New implementation...

Idiom created by

psqq