From 97dd08aab03affeb0bed8508f25d7a04f2a92d67 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Wed, 29 Jul 2020 18:33:13 -0400 Subject: Use result generation in main README --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 20d5c109..f69131cb 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ It's three letters, that happen to match the capitals in "Big Questions Notation Rather strange, most likely: - ⊑+`∘⌽⍟12↕2 # The 12th Fibonacci number + ⊑+`∘⌽⍟12↕2 # The 12th Fibonacci number For longer samples, you can [gaze into the abyss](c.bqn) that is the (incomplete) self-hosted compiler, or take a look at the friendlier [markdown processor](md.bqn) used to format and highlight documentation files. There are also [some translations](examples/fifty.bqn) from ["A History of APL in 50 Functions"](https://www.jsoftware.com/papers/50/) here. @@ -57,10 +57,6 @@ These roles work exactly like they do in APL, with functions applying to one or Unlike APL, in BQN the syntactic role of a value is determined purely by the way it's spelled: a lowercase first letter (`name`) makes it a subject, an uppercase first letter (`Name`) makes it a function, and underscores are used for 1-modifiers (`_name`) and 2-modifiers (`_name_`). Below, the function `{𝕎𝕩}` treats its left argument `𝕎` as a function and its right argument `𝕩` as a subject. With a list of functions, we can make a table of the square and square root of a few numbers: ⟨ט,√⟩ {𝕎𝕩}⌜ 1‿4‿9 - ┌ - 1 16 81 - 1 2 3 - ┘ BQN's built-in operations also have patterns to indicate the syntactic role: 1-modifiers (`` ˜¨˘⁼⌜´` ``) are all superscript characters, and 2-modifiers (`∘○⊸⟜⌾⊘◶⚇⎉⍟`) all have an unbroken circle (two functions `⌽⍉` have broken circles with lines through them). Every other built-in constant is a function, although the special symbols `¯`, `∞`, and `π` are used as part of numeric literal notation. -- cgit v1.2.3