Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
13
Task/Array-length/YAMLScript/array-length.ys
Normal file
13
Task/Array-length/YAMLScript/array-length.ys
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
!YS-v0
|
||||
|
||||
exprs =::
|
||||
- '+["apple" "orange"]'
|
||||
- 'ARGS'
|
||||
- '10 .. 20'
|
||||
- 'range(10 20)'
|
||||
- '\\A .. \\Z'
|
||||
- '"Hello, world!"'
|
||||
|
||||
each expr exprs:
|
||||
len =: expr:eval:count
|
||||
say: "The length of '$expr' is $len"
|
||||
Loading…
Add table
Add a link
Reference in a new issue