Skip to content
View okram's full-sized avatar
🏠
Working from home
🏠
Working from home

Organizations

@tinkerpop

Block or report okram

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. branches.java branches.java
    1
    mmlang> [1,2,3]                   // a stream of 3 ints
    2
    ==>1
    3
    ==>2
    4
    ==>3
    5
    mmlang> [1,2,3][id]               // passing the stream through the [id] instruction (ring *)
  2. stuff.java stuff.java
    1
    mmlang> 5 => int+2-<(nat;nat+10)=(vertex;vertex)=>edge
    2
    ==>edge:('outV'->vertex:('id'->nat:7),'inV'->vertex:('id'->nat:17))
    3
    
                  
    4
    mmlang> int => int+2-<(nat;nat+10)=(vertex;vertex)=>edge
    5
    ==>edge<=int[plus,2]
  3. the_most_primitive.java the_most_primitive.java
    1
    /*
    2
    the general concept is that the primitive instructions are map, flatmap, filter, reduce, branch.
    3
    4
    map takes a method to apply to the object or traverser (along with arguments)
    5
    flatmap takes a method to apply to the object or traverser (along with arguments) and flattens result
  4. TraversalMonoid.java TraversalMonoid.java
    1
    ~/software/mmadt/vm/jvm$ bin/mmadt.sh
    2
                                    _____ _______
    3
                               /\  |  __ |__   __|
    4
     _ __ ___  _ __ ___ _____ /  \ | |  | | | |
    5
    | '_ ` _ \| '_ ` _ |_____/ /\ \| |  | | | |