domain | torchlight.dev |
summary | The text describes two different topics:
1. Factorial in Python: - The code defines a function to calculate the factorial of a number entered by the user using recursion. - If the input is not a non-negative integer, it raises a ValueError. - The function `fib` is defined for calculating fibonacci numbers based on the given inputs.
2. Chunking an array in PHP: - Three functions are defined to chunk an array into smaller arrays of a specified size. - Each function takes the array and the chunk size as parameters, and returns a new static class with the chunks. |
title | Torchlight - the API for Syntax Highlighting |
description | Torchlight - the API for Syntax Highlighting |
keywords | chunks, chunk, size, static, return, function, blocks, public, items, true, class, html, block, have, code, language, octane |
upstreams |
|
downstreams |
|
nslookup | A 18.67.240.88, A 18.67.240.102, A 18.67.240.3, A 18.67.240.26 |
created | 2024-02-13 |
updated | 2024-10-22 |
|
|