Skip to main content
Commonmark migration
Source Link

#J, score is 7 (12 chars - 5 points for avoiding multiplication)

J, score is 7 (12 chars - 5 points for avoiding multiplication)

+/@$/@$~/@$~

usage:

 4 +/@$/@$~/@$~ 3 1.34078e154 t=.+/@$/@$~/@$~ NB. define a function 4 t 3 1.34078e154 2 t 2 4 

Just few nested folds:

  • Using multiplication it would be */@$~/@$~
  • Using power it would be ^/@$~ where $~ creates array, / is a fold function.

#J, score is 7 (12 chars - 5 points for avoiding multiplication)

+/@$/@$~/@$~

usage:

 4 +/@$/@$~/@$~ 3 1.34078e154 t=.+/@$/@$~/@$~ NB. define a function 4 t 3 1.34078e154 2 t 2 4 

Just few nested folds:

  • Using multiplication it would be */@$~/@$~
  • Using power it would be ^/@$~ where $~ creates array, / is a fold function.

J, score is 7 (12 chars - 5 points for avoiding multiplication)

+/@$/@$~/@$~

usage:

 4 +/@$/@$~/@$~ 3 1.34078e154 t=.+/@$/@$~/@$~ NB. define a function 4 t 3 1.34078e154 2 t 2 4 

Just few nested folds:

  • Using multiplication it would be */@$~/@$~
  • Using power it would be ^/@$~ where $~ creates array, / is a fold function.
added 159 characters in body
Source Link
Art
  • 1.8k
  • 12
  • 17

#J, score is 7 (12 chars - 5 points for avoiding multiplication)

+/@$/@$~/@$~

usage:

 4 +/@$/@$~/@$~ 3 1.34078e154 t=.+/@$/@$~/@$~ NB. define a function 4 t 3 1.34078e154 2 t 2 4 

Just few nested folds:

  • Using multiplication it would be */@$~/@$~
  • Using power it would be ^/@$~ where $~ creates array, / is a fold function.

#J, score is 7 (12 chars - 5 points for avoiding multiplication)

+/@$/@$~/@$~

usage:

 4 +/@$/@$~/@$~ 3 1.34078e154 t=.+/@$/@$~/@$~ NB. define a function 4 t 3 1.34078e154 2 t 2 4 

#J, score is 7 (12 chars - 5 points for avoiding multiplication)

+/@$/@$~/@$~

usage:

 4 +/@$/@$~/@$~ 3 1.34078e154 t=.+/@$/@$~/@$~ NB. define a function 4 t 3 1.34078e154 2 t 2 4 

Just few nested folds:

  • Using multiplication it would be */@$~/@$~
  • Using power it would be ^/@$~ where $~ creates array, / is a fold function.
Source Link
Art
  • 1.8k
  • 12
  • 17

#J, score is 7 (12 chars - 5 points for avoiding multiplication)

+/@$/@$~/@$~

usage:

 4 +/@$/@$~/@$~ 3 1.34078e154 t=.+/@$/@$~/@$~ NB. define a function 4 t 3 1.34078e154 2 t 2 4