42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
#!/usr/bin/env nomsu -V6.14
|
|
#
|
|
This file defines upgrades from Nomsu <3.7 to 3.7
|
|
|
|
use "compatibility/compatibility"
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
upgrade action [$index st to last in $list] to "3.7" as
|
|
$list, $index st to last
|
|
|
|
upgrade action [$index nd to last in $list] to "3.7" as
|
|
$list, $index nd to last
|
|
|
|
upgrade action [$index rd to last in $list] to "3.7" as
|
|
$list, $index rd to last
|
|
|
|
upgrade action [$index th to last in $list] to "3.7" as
|
|
$list, $index rd th last
|
|
|
|
upgrade action [last in $list] to "3.7" as ($list, last)
|
|
upgrade action [first in $list] to "3.7" as ($list, first)
|
|
upgrade action [$item is in $list, $list contains $item, $list has $item] to
|
|
.."3.7" as ($list, has $item)
|
|
|
|
upgrade action [
|
|
$item isn't in $list, $item is not in $list, $list doesn't contain $item
|
|
$list does not contain $item, $list doesn't have $item, $list does not have $item
|
|
] to "3.7" as (not ($list, has $item))
|
|
|
|
upgrade action [$list has key $index, $list has index $index] to "3.7" as
|
|
$list.$index != (nil)
|
|
|
|
upgrade action [
|
|
$list doesn't have key $index, $list does not have key $index
|
|
$list doesn't have index $index, $list does not have index $index
|
|
] to "3.7" as ($list.$index == (nil))
|
|
|
|
upgrade action [
|
|
number of keys in $list, len $list, || $list ||, length $list, length of $list
|
|
] to "3.7" as (size of $list)
|