How to specify ranges in YAML?

后端 未结 3 2453
终归单人心
终归单人心 2021-02-20 16:07

I can express

3rd page is the title page

in YAML

title: 3

What about the following?

3条回答
  •  眼角桃花
    2021-02-20 16:50

    Range is application specific. The following may be meaningful for some applications:

    -1 .. Q

    a .. Щ

    23 .. -23.45

    1 .. 12:01:14 (both are integers in YAML !)

    But the ruby way is also unclear since it does not say whether the end values are included or not: 10 .. 15

    (Are you only talking about ranges of integers ?)

提交回复
热议问题