10 J One Liners to Impress Your Friends

Sep 21, 2012 17:01

  1. Multiple Each Item in a List by 2:
    2 * 1 + i.10
  2. Sum a List of Numbers:
    +/ (1 + i.1000)
  3. Verify if Exists in a String:
    words =: 'language'; 'impossible'; 'array'; 'think'; 'verbs'
    tweet =: "This language has verbs, nouns and adjectives"
    result =: (# ((;: tweet) -. ((i.5) { words))) ~: (# ;:tweet)
  4. Read in a File:
    load 'files ( Read more... )

кода

Leave a comment

Comments 1

blood_again September 21 2012, 14:14:47 UTC
Действительно впечатляет.

Reply


Leave a comment

Up