Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1021607 // ai_findNumberCalculationFunction1

JavaX fragment (include)

sS ai_findNumberCalculationFunction1(L<Double> numbers) {
  ret empty(numbers) ? null : ai_findNumberCalculationFunction1(dropLast(numbers), last(numbers));
}

sS ai_findNumberCalculationFunction1(L<Double> numbers, double result) {
  if (l(numbers) != 2) null;
  for (S f : ai_numberCalculationFunctions()) pcall {
    if (ai_checkNumberCalculationFunction1(f, numbers, result))
      ret f;
  }
  null;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021607
Snippet name: ai_findNumberCalculationFunction1
Eternal ID of this version: #1021607/7
Text MD5: 36b3e1efb59ce8191482069e2fb2673f
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-03 00:12:54
Source code size: 417 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 353 / 377
Version history: 6 change(s)
Referenced in: [show references]