Все вопросы: [j]
8 вопросов
How to refactor this in J?
Here is a different approach for the Project Euler #1 solution: +/~.(3*i.>.1000%3),5*i.>.1000%5 How to refactor it?
How to refactor this in J?
My newbie solution to Project Euler #1 +/((0=3|1+i.1000-1) +. (0=5|1+i.1000-1)) * (1+i.1000-1) I know that this can be refactored, and transformed into a function, i don't know how to do it, and I would have to read all the labs to learn it.
Learning J/K/APL
I know all 3 are related, and I've seen quite a few answers for problems in Project Euler written in J, and a few written K. What I'm wondering is, which would you suggest learning, and where would you suggest going about getting the materials to learn it?
Why is this J function not running?
I am attempting to learn J and the book I am using says this is the proper way to define a monadic function function =: 3:0 function statements so I followed this format and wrote the folding code. Can you tell me why this is throwing a syntax error when I try to call it with input but ...
Where can one find a list of all the operators in J
I am trying to learn J and one huge problem I'm running into is I don't know what all the predefined operators are or where to find them. It took me way too long to figure out the | is both the remainder function(when it dyadic) but when its used monadic it gets absolute value or magnitude. Doe...
J @ не работает должным образом
Я только начинаю понимать язык J и меня смущает следующее: 1 2 +/@{ i.4 1 2 +/ 1 2 { i.4 3 если в документации для @ написано: "x u @ v y ↔ u x v y" Полагаю, я просто принимаю одну часть речи за другую, но не могу понять также, как определить, к какому типу речи принадлежит имя?
Кто-нибудь порекомендовал бы изучить J / K / APL?
Я столкнулся с J / K / APL несколько месяцев назад, работая над некоторыми проблемами project euler , и был заинтригован, мягко говоря. Для каждого созданного мною элегантно выглядящего 20-строчного решения Python было бы потрясающее решение из 20 символов J, которое выполнялось в десятой час...
Как вы называете эту функциональную языковую функцию?
Хорошо, достаточно смущает, я разместил код, который мне нужно объяснить а>. В частности, он сначала связывает абсолютное значение и вычитание вместе, а затем выполняет сортировку, при этом не говоря уже о параметрах и аргументах, из-за присутствия «наречий», которые могут присоединяться к э...