enso/distribution/lib/Standard/Base/0.0.0-dev/package.yaml
James Dunkerley c4c35c92b7
Align Vector API with design, add some extra functions from AoC (#4026)
**Vector**
- Adjusted `Vector.sort` to be `Vector.sort order on by`.
- Adjusted other sort to use `order` for direction argument.
- Added `insert`, `remove`, `index_of` and `last_index_of` to `Vector`.
- Added `start` and `if_missing` arguments to `find` on `Vector`, and adjusted default is `Not_Found` error.
- Added type checking to `+` on `Vector`.
- Altered `first`, `second` and `last` to error with `Index_Out_Of_Bounds` on `Vector`.
- Removed `sum`, `exists`, `head`, `init`, `tail`, `rest`, `append`, `prepend` from `Vector`.

**Pair**
- Added `last`, `any`, `all`, `contains`, `find`, `index_of`, `last_index_of`, `reverse`, `each`, `fold` and `reduce` to `Pair`.
- Added `get` to `Pair`.

**Range**
- Added `first`, `second`, `index_of`, `last_index_of`, `reverse` and `reduce` to `Range`.
- Added `at` and `get` to `Range`.
- Added `start` and `if_missing` arguments to `find` on `Range`.
- Simplified `last` and `length` of `Range`.
- Removed `exists` from `Range`.

**List**
- Added `second`, `find`, `index_of`, `last_index_of`, `reverse` and `reduce` to `Range`.
- Added `at` and `get` to `List`.
- Removed `exists` from `List`.
- Made `all` short-circuit if any fail on `List`.
- Altered `is_empty` to not compute the length of `List`.
- Altered `first`, `tail`, `head`, `init` and `last` to error with `Index_Out_Of_Bounds` on `List`.

**Others**
- Added `first`, `second`, `last`, `get` to `Text`.
- Added wrapper methods to the Random_Number_Generator so you can get random values more easily.
- Adjusted `Aggregate_Column` to operate on the first column by default.
- Added `contains_key` to `Map`.
- Added ALIAS to `row_count` and `order_by`.
2023-01-12 13:32:24 +00:00

51 lines
1.5 KiB
YAML

name: Base
namespace: Standard
version: 0.0.0-dev
license: APLv2
authors:
- name: Enso Team
email: contact@enso.org
maintainers:
- name: Enso Team
email: contact@enso.org
component-groups:
new:
- Input:
exports:
- Standard.Base.System.File.File.new
- Standard.Base.Data.read
- Standard.Base.Data.read_text
- Standard.Base.Data.list_directory
- Web:
exports:
- Standard.Base.Network.HTTP.HTTP.new
- Standard.Base.Data.fetch
- Parse:
exports:
- Standard.Base.Data.Json.Json.parse
- Standard.Base.Data.Text.Regex.compile
- Standard.Base.Data.Text.Regex.escape
- Select:
exports:
- Standard.Base.Data.Vector.Vector.at
- Standard.Base.Data.Vector.Vector.get
- Standard.Base.Data.Vector.Vector.filter
- Standard.Base.Data.Vector.Vector.find
- Standard.Base.Data.Vector.Vector.take
- Standard.Base.Data.Vector.Vector.drop
- Standard.Base.Data.Vector.Vector.partition
- Standard.Base.Data.Vector.Vector.distinct
- Join:
exports:
- Standard.Base.Data.Vector.Vector.zip
- Transform:
exports:
- Standard.Base.Data.Vector.Vector.insert
- Standard.Base.Data.Vector.Vector.remove
- Standard.Base.Data.Vector.Vector.map
- Standard.Base.Data.Vector.Vector.sort
- Standard.Base.Data.Vector.Vector.distinct
- Output:
exports:
- Standard.Base.Data.Text.Text.write