4 ms·
Yes; see https://hexdocs.pm/gleam_stdlib/gleam/list/ https://hexdocs.pm/gleam_stdlib/gleam/list/. The syntax is [head, ..tail] It'd be kind of silly to create
by derefr 6y ago
Yes; see https://hexdocs.pm/gleam_stdlib/gleam/list/ https://hexdocs.pm/gleam_stdlib/gleam/list/. The syntax is [head, ..tail]
It'd be kind of silly to create a greenfield BEAM language that doesn't expose one of the most fundamental operations you can do in BEAM bytecode, and that every list-processing function ultimately relies upon :)
- devmunchies 6y ago> It'd be kind of silly to have a BEAM language that doesn't expose one of the most primitive operations you can do in the BEAM, that every list-processing function ultimately relies upon :) Agree, which is why i was confused it wasn't in the tour I linked to in the Lists or Destructuring sections