September 2017 Update

This commit is contained in:
Ingy döt Net 2017-09-23 10:01:46 +02:00
parent bba7bfd280
commit ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions

View file

@ -0,0 +1,11 @@
# A function to create an m x n matrix
# filled with the input element
def matrix(m;n):
. as $init
| ( [ range(0; n + 1) ] | map($init)) as $row
| ( [ range(0; m + 1) ] | map($row))
;
# Task: create a matrix with dimensions specified by the user
# and set the [1,2] element:
(0 | matrix($m|tonumber; $n|tonumber)) | setpath([1,2]; 99)

View file

@ -0,0 +1 @@
[[0,0,0,0],[0,0,99,0],[0,0,0,0]]