文章目录
  1. abs(singedNumber):返回给定的有符号数字的绝对值

    1
    2
    abs(-1) == 1
    abs(-42) == 42
  2. contains(sequence,element):判断给定的序列(如数组)是否包含特定的元素

    1
    2
    3
    4
    var languages = ["Swift","Objective-C"]
    contains(languages,"Swift") == true
    contains(languages,"Java") == false
    contains([29,85,42,96,75],42) == true
  3. drop


  1. abs(singedNumber):返回给定的有符号数字的绝对值

    1
    2
    abs(-1) == 1
    abs(-42) == 42
  2. contains(sequence,element):判断给定的序列(如数组)是否包含特定的元素

    1
    2
    3
    4
    var languages = ["Swift","Objective-C"]
    contains(languages,"Swift") == true
    contains(languages,"Java") == false
    contains([29,85,42,96,75],42) == true
  3. drop

文章目录