Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,8 +1,8 @@
|
|||
function identity($length) {
|
||||
return array_map(function($key, $value) {$value[$key] = 1; return $value;}, range(0, $length-1),
|
||||
array_fill(0, $length, array_fill(0,$length, 0)));
|
||||
return array_map(function($key, $value) {$value[$key] = 1; return $value;}, range(0, $length-1),
|
||||
array_fill(0, $length, array_fill(0,$length, 0)));
|
||||
}
|
||||
function print_identity($identity) {
|
||||
echo implode(PHP_EOL, array_map(function ($value) {return implode(' ', $value);}, $identity));
|
||||
echo implode(PHP_EOL, array_map(function ($value) {return implode(' ', $value);}, $identity));
|
||||
}
|
||||
print_identity(identity(10));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue