miller/pkg/bifs
John Kerl 1bb9ba12c2
Fix mlr -s shebang doc and reject arrays/maps in contains/index (#1658) (#2058)
The shebang example `#!/usr/bin/env mlr -s` does not work on Linux
because env(1) does not accept arguments to the interpreter; use
`#!/usr/bin/env -S mlr -s` instead.

`contains` and `index` previously stringified their inputs silently,
so `contains([1,2], $foo)` would match against the literal string
`[1, 2]` and produce surprising results. Both now return a type-error
when either argument is an array or map; help text points users at
`any(arr, func(e){return e == x})` for membership tests.
2026-05-17 11:40:39 -04:00
..
arithmetic.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
arithmetic_test.go The package version must match the major tag version (#1654) 2024-09-20 12:10:11 -04:00
base.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
bits.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
bits_test.go The package version must match the major tag version (#1654) 2024-09-20 12:10:11 -04:00
booleans.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
cmp.go Fix crash on array compare containing absent values (#2039) 2026-04-17 09:50:34 -04:00
collections.go Add hasvalue builtin function (#2026) 2026-04-08 08:33:12 -04:00
collections_test.go Add hasvalue builtin function (#2026) 2026-04-08 08:33:12 -04:00
datetime.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
hashing.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
hashing_test.go The package version must match the major tag version (#1654) 2024-09-20 12:10:11 -04:00
mathlib.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
percentiles.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
random.go The package version must match the major tag version (#1654) 2024-09-20 12:10:11 -04:00
regex.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
relative_time.go The package version must match the major tag version (#1654) 2024-09-20 12:10:11 -04:00
stats.go Performance and style fixes (#1981) 2026-02-18 09:19:31 -05:00
stats_test.go Performance and style fixes (#1981) 2026-02-18 09:19:31 -05:00
strings.go Fix mlr -s shebang doc and reject arrays/maps in contains/index (#1658) (#2058) 2026-05-17 11:40:39 -04:00
system.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
types.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00