Menu

#Array

100 posts

Feed·
20 of 100 posts
County urges residents to prepare for El Niño rains
📰
0Read More

Standing in front of an array of fire engines, all-terrain vehicles, earth movers and other emergency response vehicles, Kern County officials had a simple message for the public: We’re prepared; you should be too.

15s
0Read More

Surprising type of a filtered array

I have an array that contains a mix of number and string values, in other words its type is (string | number)[]: a = [0, 1, 2, NaN, 'x'] I wanted to filter only the numeric values 0, 1 and 2 that are not NaN, so I used a perfectly ordinary filter() call:…

15s
0Read More

adding 1 to a array

Reddit r/learnpython·u/teuniedekkah·4 days ago
#wyThI7zf
#array#test#adding#want#extra

so i want to add 1 extra thing to an array like i have test = [0,0] i want to do print(test[2]) so how do i add the test[2] to the array without just adding it at the begining of the script (fixed) submitted by /u/teuniedekkah [link] [comments]

15s
PHP array_map() Function: Concepts and Practical Examples
📰
0Read More

PHP array_map() Function: Concepts and Practical Examples

DEV Community: php·Youn·4 days ago
#atW1rnUo
#devto#dev#array#function#callback

😄 This post is based on the content from coding.courses. Definition and Usage (PHP...

15s
800 MB of Arrays Nobody Asked For
📰
0Read More

800 MB of Arrays Nobody Asked For

DEV Community: dotnet·Sukhpinder Singh·5 days ago
#XugEgbeE
#devtodotnet#devto#dev#params#values

A params int[] helper allocated a fresh array on every call. Switching to params ReadOnlySpan dropped the allocations to zero and ran the hot loop about 4.5x faster.

15s
Reorder PDF Pages in C#: Custom Page Order and Full Document Reversal
📰
0Read More

Reorder PDF Pages in C#: Custom Page Order and Full Document Reversal

DEV Community: dotnet·Jack9012·6 days ago
#LlDA02Hl
#devtodotnet#devto#dev#pages#document

After merging scanned files, you may find that the pages are in the wrong order, or you may want to...

15s
Your PHP API Sends Keys 10 Then 2. Your TypeScript Client Reads 2 Then 10
🖼️
0Read More

Your PHP API Sends Keys 10 Then 2. Your TypeScript Client Reads 2 Then 10

DEV Community: php·Gabriel Anhaia·9 days ago
#b5lOu41q
#devto#dev#order#keys#object

PHP arrays keep insertion order. JavaScript objects list integer-like keys first, ascending. Why it happens, the array_filter twin, and the fixes.

15s
Massiv vs. Accelerate: Two Paths to High-Performance CPU Computing in Haskell
🖼️
0Read More

Massiv vs. Accelerate: Two Paths to High-Performance CPU Computing in Haskell

DEV Community: haskell·Stack Builders·10 days ago
#7C9B7ON7
#devtohaskell#devto#dev#accelerate#massiv

Compare Massiv and Accelerate for high-performance array processing in Haskell, including CPU speed, memory use, and deployment trade-offs.

15s
Add Values to an Associative Array with array_push() in PHP
📰
0Read More

Add Values to an Associative Array with array_push() in PHP

DEV Community: php·Kevinleary.net·12 days ago
#4IVqoJ7r
#devto#dev#work#array#query_args

This snippet will add values to an associative array. Normally I use array_push() for this, but that function doesn’t work with associative arra

15s