nomsu/lib/compatibility/3.7.nom
Bruce Hill a1849da175 Autoformat (mostly just to do with the new
blank-line-after-end-of-multi-indent-block rule
2019-03-27 15:22:46 -07:00

41 lines
1.4 KiB
Plaintext

#!/usr/bin/env nomsu -V7.0.0
###
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)