Qi Xiao
3f4bbff9c5
pkg/eval: Add option for total order to the order and compare commands.
...
The same code will be used to sort map keys when printing maps.
This addresses #1495 .
2023-05-18 23:21:18 +01:00
Qi Xiao
1e249ed7fb
pkg/eval.cmp -> pkg/eval/vals.Cmp.
2023-05-18 10:31:31 +01:00
Qi Xiao
a3f4384495
Move all elvdocs into .d.elv files.
...
The elvdocs still use the old format (#elvdoc:fn or #elvdoc:var) for now, but
will be changed to "fn" and "var" forms soon.
Also remove the accidentally committed cmd/mvelvdoc. It has been used to perform
the conversion automatically but is not supposed to be committed.
2022-11-20 21:59:45 +00:00
Qi Xiao
f8f0f3e889
Fixup for #1588
2022-08-29 12:29:24 +01:00
Kurtis Rader
eed6a995dd
Support comparing booleans ( #1588 )
...
Fixes #1585
2022-08-29 12:25:54 +01:00
Qi Xiao
f8f60953ad
Properly deprecate float64.
...
- Replace its use with "num" in documentation and test code.
- Add a new "inexact-num" for explicitly converting a number to inexact.
This fixes #1513 .
2022-04-09 11:45:15 +01:00
Qi Xiao
51e4d97568
interface{} -> any now that Elvish requires Go 1.18.
2022-03-20 16:17:19 +00:00
Qi Xiao
560bd17c17
pkg/eval: Break up builtin_fn_container.go.
...
- range -> builtin_fn_num.go
- all, one, take, drop, count, order -> new builtin_fn_stream.go
- repeat -> builtin_fn_io.go
- compare -> builtin_fn_pred.go
2021-12-26 12:22:14 +00:00
Qi Xiao
3d49f02593
Document that "eq" requires values to have the same type to be considered equal.
...
This fixes #1288 .
2021-06-27 01:54:31 +01:00
Qi Xiao
196eea21d4
Change module import path to src.elv.sh
2021-01-27 01:30:25 +00:00
Qi Xiao
09829ae9cd
pkg/eval: Update doc of the "not" command.
2020-12-25 17:46:09 +00:00
Kurtis Rader
f94a0ec735
Trivial documentation consistency change
...
I noticed that most places in the documentation that emit a "note"
about Elvish behavior use `**Note**:`. There were two places that use
all uppercase. Make those consistent with the other uses. Also clarify
the note associated with the `not` builtin.
2020-12-25 17:43:32 +00:00
Qi Xiao
9b2b33b429
pkg/eval: Move elvdoc comments before the implementations.
2020-08-16 18:46:29 +01:00
Qi Xiao
41985123d3
Move all docs for builtins to the Go code.
2020-01-18 08:12:50 -05:00
Qi Xiao
e45fdf7228
Move all libraries to new pkg/.
2019-12-23 20:00:59 +00:00