feat: mudasir image
This commit is contained in:
parent
30c30c7747
commit
a95346f7ee
BIN
public/img/mudasir.jpg
Normal file
BIN
public/img/mudasir.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 74 KiB |
43
src/pages/api/std/Array/map.mdx
Normal file
43
src/pages/api/std/Array/map.mdx
Normal file
@ -0,0 +1,43 @@
|
||||
---
|
||||
layout: ../../../../layouts/ApiLayout.astro
|
||||
---
|
||||
import Code from "../../../../components/Code.astro"
|
||||
|
||||
# `Array.map`
|
||||
|
||||
Applies a function to all the elements of an array,
|
||||
and returns their result in a new array.
|
||||
|
||||
## Signature
|
||||
|
||||
<Code thpcode={`
|
||||
fun [A, B](Array[A] self) map(
|
||||
(A) -> (B) map_function
|
||||
) -> Array[B]
|
||||
|
||||
fun map[B](
|
||||
self[],
|
||||
(A) -> (B) map_function
|
||||
) -> Array[B]
|
||||
`} />
|
||||
|
||||
|
||||
|
||||
<Code thpcode={`
|
||||
|
||||
fun multi_def
|
||||
| ("prosor prosor", 322) -> Float
|
||||
{
|
||||
fmt.Println("prosor prosor %d", 322)
|
||||
}
|
||||
| (String a, Int b) -> Float
|
||||
{
|
||||
|
||||
}
|
||||
| (String a) -> Float
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
`} />
|
||||
|
@ -144,11 +144,13 @@ and plugins for major editors like VSCode and Neovim.
|
||||
- Create a **consistent** language.
|
||||
- Have typings for popular libraries (like TS's `.d.ts`).
|
||||
- Have a simple instalation and configuration (requiring just Composer or a binary).
|
||||
- Ship a **_blazingly fast_**, native binary, written in Rust.
|
||||
- Ship a **_blazingly fast_**, native binary, ~~written in Rust~~ now rewritten in Zig!.
|
||||
- Support in-place compilation.
|
||||
- Implement a Language Server.
|
||||
- Implement an opinionated code formatter.
|
||||
|
||||
![Friendship ended with Rust, now Zig is my best friend.](/img/mudasir.jpg)
|
||||
|
||||
|
||||
## Not goals
|
||||
|
||||
|
@ -5,7 +5,16 @@ title: Install
|
||||
|
||||
# Install
|
||||
|
||||
**THP is not available for public use. These are goals.**
|
||||
**THP is technically usable.**
|
||||
|
||||
## From source (*nix)
|
||||
|
||||
Requires Rust installed.
|
||||
|
||||
Clone [the repo](https://git.araozu.dev/fernando/thp) and run
|
||||
`cargo build --release`. You'll have a `thp` binary on
|
||||
`target/release/thp`, run it and see for yourself.
|
||||
|
||||
|
||||
## Binary
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user