J studio

From J Wiki
Jump to navigation Jump to search

⬅ Return to 'Welcome to J'

Basic Examples

J is similar in many ways to other programming languages, but it can also be very different. Here are a few examples.

Simple Examples of J in action.

Rank specifies the behaviour of a verb on certain subarrays of its arguments, which for a rank-k verb are referred to as the k-cells. Each verb is assigned a rank, and a rank may be otherwise specified with the rank conjunction.

Order of Execution in J, unlike most other programming languages, has no precedence between verbs. Like other languages, parentheses can be used to specify the sequence of execution.

Indexing is effected using the verb { (from), and indexed replacement using the adverb } (amend). From and amend are symmetric. These are described in entries in the Dictionary.

Framework Examples