0

Haxe NME Array indexOf

Posted by Dana on April 1, 2013 in HAXE, NME |

Arrays on Haxe/NME are not very straignt forward to me.

So if your are looking for indexOf the Lambda Class is where you will find it.

On the Haxe documentation for Array it show only this vars and methods:

  • var length(default,null) : Int
  • function new() : Void
  • function concat( a : Array<T> ) : Array<T>
  • function copy() : Array<T>
  • function filter( f : T -> Bool ) : Array<T>
  • function insert( pos : Int, x : T ) : Void
  • function iterator() : Iterator<T>
  • function join( sep : String ) : String
  • function map<S>( f : T -> S ) : Array<S>
  • function pop() : Null<T>
  • function push( x : T ) : Int
  • function remove( x : T ) : Bool
  • function reverse() : Void
  • function shift() : Null<T>
  • function slice( pos : Int, ?end : Int ) : Array<T>
  • function sort( f : T -> T -> Int ) : Void
  • function splice( pos : Int, len : Int ) : Array<T>
  • function toString() : String
  • function unshift( x : T ) : Void

Lambda example:

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright © 2012-2017 Code in GoGoLand All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.